public class Keycloak extends Object implements AutoCloseable
RESTEasy client
with the
default ResteasyClientBuilder
settings. To customize the underling client, use a KeycloakBuilder
to
create a Keycloak client.
To read Responses, you can use CreatedResponseUtil
for objects createdKeycloakBuilder
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the underlying client.
|
static Keycloak |
getInstance(String serverUrl,
String realm,
String clientId,
String authToken) |
static Keycloak |
getInstance(String serverUrl,
String realm,
String clientId,
String authToken,
SSLContext sllSslContext) |
static Keycloak |
getInstance(String serverUrl,
String realm,
String username,
String password,
String clientId) |
static Keycloak |
getInstance(String serverUrl,
String realm,
String username,
String password,
String clientId,
SSLContext sslContext) |
static Keycloak |
getInstance(String serverUrl,
String realm,
String username,
String password,
String clientId,
String clientSecret) |
static Keycloak |
getInstance(String serverUrl,
String realm,
String username,
String password,
String clientId,
String clientSecret,
SSLContext sslContext) |
static Keycloak |
getInstance(String serverUrl,
String realm,
String username,
String password,
String clientId,
String clientSecret,
SSLContext sslContext,
ResteasyJackson2Provider customJacksonProvider) |
static Keycloak |
getInstance(String serverUrl,
String realm,
String username,
String password,
String clientId,
String clientSecret,
SSLContext sslContext,
ResteasyJackson2Provider customJacksonProvider,
boolean disableTrustManager,
String authToken) |
boolean |
isClosed() |
<T> T |
proxy(Class<T> proxyClass,
URI absoluteURI)
Create a secure proxy based on an absolute URI.
|
RealmResource |
realm(String realmName) |
RealmsResource |
realms() |
ServerInfoResource |
serverInfo() |
TokenManager |
tokenManager() |
public static Keycloak getInstance(String serverUrl, String realm, String username, String password, String clientId, String clientSecret, SSLContext sslContext, ResteasyJackson2Provider customJacksonProvider, boolean disableTrustManager, String authToken)
public static Keycloak getInstance(String serverUrl, String realm, String username, String password, String clientId, String clientSecret)
public static Keycloak getInstance(String serverUrl, String realm, String username, String password, String clientId, String clientSecret, SSLContext sslContext)
public static Keycloak getInstance(String serverUrl, String realm, String username, String password, String clientId, String clientSecret, SSLContext sslContext, ResteasyJackson2Provider customJacksonProvider)
public static Keycloak getInstance(String serverUrl, String realm, String username, String password, String clientId)
public static Keycloak getInstance(String serverUrl, String realm, String username, String password, String clientId, SSLContext sslContext)
public static Keycloak getInstance(String serverUrl, String realm, String clientId, String authToken)
public static Keycloak getInstance(String serverUrl, String realm, String clientId, String authToken, SSLContext sllSslContext)
public RealmsResource realms()
public RealmResource realm(String realmName)
public ServerInfoResource serverInfo()
public TokenManager tokenManager()
public <T> T proxy(Class<T> proxyClass, URI absoluteURI)
T
- proxyClass
- absoluteURI
- public void close()
Keycloak
instance cannot be reused.close
in interface AutoCloseable
public boolean isClosed()
Copyright © 2019 JBoss by Red Hat. All rights reserved.