Class AuthUtil

java.lang.Object
io.jans.configapi.util.AuthUtil

@ApplicationScoped public class AuthUtil extends Object
  • Constructor Details

    • AuthUtil

      public AuthUtil()
  • Method Details

    • 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)
    • requestAccessToken

      public String requestAccessToken(String clientId, List<String> scope)
    • 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)
    • getScopeWithDn

      public List<String> getScopeWithDn(List<String> scopes)
    • 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)
    • containsAnyElement

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

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

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

      public List<Field> getAllFields(Class<?> type)
    • getAllFields

      public List<Field> getAllFields(List<Field> fields, Class<?> type)
    • 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)
    • getByteArrayOutputStream

      public ByteArrayOutputStream getByteArrayOutputStream(InputStream input) throws IOException
      Throws:
      IOException
    • getInputStream

      public InputStream getInputStream(ByteArrayOutputStream output)