Package io.jans.configapi.util
Class AuthUtil
- java.lang.Object
-
- io.jans.configapi.util.AuthUtil
-
@ApplicationScoped public class AuthUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description AuthUtil()
-
Method Summary
-
-
-
Method Detail
-
getOpenIdConfigurationEndpoint
public String getOpenIdConfigurationEndpoint()
-
getAuthOpenidConfigurationUrl
public String getAuthOpenidConfigurationUrl()
-
getIssuer
public String getIssuer()
-
getClientId
public String getClientId()
-
getUserExclusionAttributesAsString
public String getUserExclusionAttributesAsString()
-
getTokenUrl
public String getTokenUrl()
-
getTokenRevocationEndpoint
public String getTokenRevocationEndpoint()
-
getClient
public io.jans.as.common.model.registration.Client getClient(String clientId)
-
getResourceScopeList
public List<io.jans.as.persistence.model.Scope> getResourceScopeList(String method, String path)
-
getRequestedScopes
public List<String> getRequestedScopes(jakarta.ws.rs.container.ResourceInfo resourceInfo)
-
requestAccessToken
public io.jans.as.model.uma.wrapper.Token requestAccessToken(String tokenUrl, String clientId, List<String> scopes)
-
assignAllScope
public void assignAllScope(String clientId)
-
isValidIssuer
public boolean isValidIssuer(String issuer)
-
getAuthSpecificScopeRequired
public List<String> getAuthSpecificScopeRequired(jakarta.ws.rs.container.ResourceInfo resourceInfo)
-
findMissingElements
public List<String> findMissingElements(List<String> list1, List<String> list2)
-
isValidDn
public boolean isValidDn(String dn)
-
isValidDn
public boolean isValidDn(String dn, boolean strictNameChecking)
-
-