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()
-
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()
-
getClientId
public String getClientId()
-
getUserExclusionAttributesAsString
public String getUserExclusionAttributesAsString()
-
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)
-
getRequestedScopes
public Map<io.jans.configapi.core.util.ProtectionScopeType,List<String>> getRequestedScopes(jakarta.ws.rs.container.ResourceInfo resourceInfo)
-
getAccessToken
public io.jans.as.model.uma.wrapper.Token getAccessToken(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)
-
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)
-
getByteArrayOutputStream
public ByteArrayOutputStream getByteArrayOutputStream(InputStream input) throws IOException
- Throws:
IOException
-
-