Class AuthUtil


  • @ApplicationScoped
    public class AuthUtil
    extends Object
    • Constructor Detail

      • AuthUtil

        public AuthUtil()
    • Method Detail

      • getOpenIdConfigurationEndpoint

        public String getOpenIdConfigurationEndpoint()
      • getAuthOpenidConfigurationUrl

        public String getAuthOpenidConfigurationUrl()
      • getAuditLogConf

        public io.jans.configapi.model.configuration.AuditLogConf getAuditLogConf()
      • getDataFormatConversionConf

        public io.jans.configapi.model.configuration.DataFormatConversionConf getDataFormatConversionConf()
      • getPluginConf

        public List<io.jans.configapi.model.configuration.PluginConf> getPluginConf()
      • getIssuer

        public String getIssuer()
      • getIntrospectionEndpoint

        public String getIntrospectionEndpoint()
      • getTokenEndpoint

        public String getTokenEndpoint()
      • getEndSessionEndpoint

        public String getEndSessionEndpoint()
      • getServiceUrl

        public String getServiceUrl​(String url)
      • getClientId

        public String getClientId()
      • getUserExclusionAttributes

        public List<String> getUserExclusionAttributes()
      • getUserExclusionAttributesAsString

        public String getUserExclusionAttributesAsString()
      • getUserMandatoryAttributes

        public List<String> getUserMandatoryAttributes()
      • getAgamaConfiguration

        public io.jans.configapi.model.configuration.AgamaConfiguration getAgamaConfiguration()
      • 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)
      • getRequestedScopes

        public Map<io.jans.configapi.core.util.ProtectionScopeType,​List<String>> getRequestedScopes​(jakarta.ws.rs.container.ResourceInfo resourceInfo)
      • validateScope

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

        public io.jans.as.model.uma.wrapper.Token getAccessToken​(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)
      • containsAnyElement

        public boolean containsAnyElement​(List<String> list1,
                                          List<String> list2)
      • containsField

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

        public boolean isValidDn​(String dn)
      • isValidDn

        public boolean isValidDn​(String dn,
                                 boolean strictNameChecking)
      • revokeSession

        public io.jans.as.client.RevokeSessionResponse revokeSession​(String url,
                                                                     String token,
                                                                     String userId)
      • getAllScopeList

        public List<String> getAllScopeList​(Map<io.jans.configapi.core.util.ProtectionScopeType,​List<String>> scopeMap)
      • parseStringToDateObj

        public Date parseStringToDateObj​(String dateString)