public class KeycloakConfiguration
extends java.lang.Object
Constructor and Description |
---|
KeycloakConfiguration(org.aerogear.mobile.core.configuration.ServiceConfiguration configuration)
Create a new instance of the Keycloak configuration from the given instance of
ServiceConfiguration.
|
Modifier and Type | Method and Description |
---|---|
android.net.Uri |
getAuthenticationEndpoint()
Get the URI for the Keycloak authentication endpoint
|
java.lang.String |
getHostUrl()
Get the URL string of the Keycloak singleThreadService
|
java.lang.String |
getIssuer()
Returns the JWT Issuer
|
java.lang.String |
getIssuerHostname()
Get the Auth Server URL string of the Keycloak singleThreadService This URL should only be
used to get the issuer field for token verification.
|
java.lang.String |
getJwksUrl()
Returns the URL where keys can be retrieved.
|
java.lang.String |
getLogoutUrl(java.lang.String identityToken,
java.lang.String redirectUri)
Get the logout URL string
|
java.lang.String |
getRealmName()
Get the realm name of the Keycloak singleThreadService
|
java.lang.String |
getResourceId()
Get the resource id
|
android.net.Uri |
getTokenEndpoint()
Get the URI for the token exchange endpoint
|
public KeycloakConfiguration(org.aerogear.mobile.core.configuration.ServiceConfiguration configuration)
configuration
- the ServiceConfiguration instance for Keycloakpublic android.net.Uri getAuthenticationEndpoint()
public android.net.Uri getTokenEndpoint()
public java.lang.String getResourceId()
public java.lang.String getLogoutUrl(java.lang.String identityToken, java.lang.String redirectUri)
identityToken
- the identity tokenredirectUri
- the redirect uripublic java.lang.String getHostUrl()
public java.lang.String getIssuerHostname()
public java.lang.String getRealmName()
public java.lang.String getJwksUrl()
public java.lang.String getIssuer()