Class AuthUtil


  • @ApplicationScoped
    public class AuthUtil
    extends Object
    • Constructor Detail

      • AuthUtil

        public AuthUtil()
    • Method Detail

      • getOpenIdConfigurationEndpoint

        public String getOpenIdConfigurationEndpoint()
      • getAuthOpenidConfigurationUrl

        public String getAuthOpenidConfigurationUrl()
      • getIssuer

        public String getIssuer()
      • getServiceUrl

        public String getServiceUrl​(String url)
      • getClientId

        public String getClientId()
      • getUserExclusionAttributes

        public List<String> getUserExclusionAttributes()
      • getUserExclusionAttributesAsString

        public String getUserExclusionAttributesAsString()
      • getUserMandatoryAttributes

        public List<String> getUserMandatoryAttributes()
      • getTokenUrl

        public String getTokenUrl()
      • getTokenRevocationEndpoint

        public String getTokenRevocationEndpoint()
      • getClient

        public io.jans.as.common.model.registration.Client getClient​(String clientId)
      • getClientPassword

        public String getClientPassword​(String clientId)
      • getClientDecryptPassword

        public String getClientDecryptPassword​(String clientId)
      • decryptPassword

        public String decryptPassword​(String clientPassword)
      • encryptPassword

        public String encryptPassword​(String clientPassword)
      • getResourceScopeList

        public List<io.jans.as.persistence.model.Scope> getResourceScopeList​(String method,
                                                                             String path)
      • getAllResourceScopes

        public List<String> getAllResourceScopes()
      • getRequestedScopes

        public List<String> getRequestedScopes​(jakarta.ws.rs.container.ResourceInfo resourceInfo)
      • validateScope

        public boolean validateScope​(List<String> authScopes,
                                     List<String> resourceScopes)
      • requestAccessToken

        public io.jans.as.model.uma.wrapper.Token requestAccessToken​(String tokenUrl,
                                                                     String clientId,
                                                                     List<String> scopes)
      • assignAllScope

        public void assignAllScope​(String clientId)
      • getAllScopes

        public List<String> getAllScopes()
      • getAllScopesArray

        public String[] getAllScopesArray​(List<String> scopes)
      • isValidIssuer

        public boolean isValidIssuer​(String issuer)
      • getAuthSpecificScopeRequired

        public List<String> getAuthSpecificScopeRequired​(jakarta.ws.rs.container.ResourceInfo resourceInfo)
      • containsField

        public boolean containsField​(List<Field> allFields,
                                     String attribute)