keycloak
|
公開メンバ関数 | |
ProtectionResource | protection () |
ProtectionResource | protection (final String accessToken) |
ProtectionResource | protection (String userName, String password) |
AuthorizationResource | authorization () |
AuthorizationResource | authorization (final String accessToken) |
AuthorizationResource | authorization (final String userName, final String password) |
AccessTokenResponse | obtainAccessToken () |
AccessTokenResponse | obtainAccessToken (String userName, String password) |
ServerConfiguration | getServerConfiguration () |
Configuration | getConfiguration () |
静的公開メンバ関数 | |
static AuthzClient | create () throws RuntimeException |
static AuthzClient | create (Configuration configuration) |
static AuthzClient | create (Configuration configuration, ClientAuthenticator authenticator) |
非公開メンバ関数 | |
AuthzClient (Configuration configuration, ClientAuthenticator authenticator) | |
TokenCallable | createPatSupplier (String userName, String password) |
TokenCallable | createPatSupplier () |
TokenCallable | createRefreshableAccessTokenSupplier (final String userName, final String password) |
非公開変数類 | |
final Http | http |
TokenCallable | patSupplier |
final ServerConfiguration | serverConfiguration |
final Configuration | configuration |
This is class serves as an entry point for clients looking for access to Keycloak Authorization Services.
When creating a new instances make sure you have a Keycloak Server running at the location specified in the client configuration. The client tries to obtain server configuration by invoking the UMA Discovery Endpoint, usually available from the server at http(s)://{server}:{port}/auth/realms/{realm}/.well-known/uma-configuration.
|
inlineprivate |
|
inline |
Creates a AuthorizationResource instance which can be used to obtain permissions from the server.
|
inline |
Creates a AuthorizationResource instance which can be used to obtain permissions from the server.
accessToken | the Access Token that will be used as a bearer to access the token endpoint |
|
inline |
Creates a AuthorizationResource instance which can be used to obtain permissions from the server.
userName | an ID Token or Access Token representing an identity and/or access context |
password |
|
inlinestatic |
Creates a new instance.
This method expects a keycloak.json
in the classpath, otherwise an exception will be thrown.
RuntimeException | in case there is no keycloak.json file in the classpath or the file could not be parsed |
|
inlinestatic |
Creates a new instance.
configuration | the client configuration |
|
inlinestatic |
Creates a new instance.
configuration | the client configuration |
authenticator | the client authenticator |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
Obtains the client configuration
|
inline |
Returns the configuration obtained from the server at the UMA Discovery Endpoint.
|
inline |
Obtains an access token using the client credentials.
|
inline |
Obtains an access token using the resource owner credentials.
|
inline |
Creates a ProtectionResource instance which can be used to access the Protection API.
When using this method, the PAT (the access token with the uma_protection scope) is obtained for the client itself, using any of the supported credential types (client/secret, jwt, etc).
|
inline |
Creates a ProtectionResource instance which can be used to access the Protection API.
accessToken | the PAT (the access token with the uma_protection scope) |
|
inline |
Creates a ProtectionResource instance which can be used to access the Protection API.
When using this method, the PAT (the access token with the uma_protection scope) is obtained for a given user.
|
private |
|
private |
|
private |
|
private |