Package org.keycloak.adapters.installed
Class KeycloakInstalled
java.lang.Object
org.keycloak.adapters.installed.KeycloakInstalled
- Author:
- Stian Thorgersen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionKeycloakInstalled(InputStream config) KeycloakInstalled(KeycloakDeployment deployment) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected StringcreateAuthUrl(String redirectUri, String state, KeycloakInstalled.Pkce pkce) protected KeycloakInstalled.PkceintgetToken()getTokenString(long minValidity, TimeUnit unit) booleanvoidlogin()voidlogin(PrintStream printer, Reader reader) voidvoidvoidloginManual(PrintStream printer, Reader reader) voidlogout()voidvoidrefreshToken(String refreshToken) voidsetDesktopProvider(KeycloakInstalled.DesktopProvider desktopProvider) voidsetListenHostname(String listenHostname) Configures the local hostname to listen for callbacks.voidsetListenPort(int listenPort) Configures the local port to listen for callbacks.voidvoidsetResteasyClient(org.jboss.resteasy.client.jaxrs.ResteasyClient resteasyClient)
-
Constructor Details
-
KeycloakInstalled
public KeycloakInstalled() -
KeycloakInstalled
-
KeycloakInstalled
-
-
Method Details
-
setResteasyClient
public void setResteasyClient(org.jboss.resteasy.client.jaxrs.ResteasyClient resteasyClient) -
getLocale
-
setLocale
-
getListenPort
public int getListenPort() -
setListenPort
public void setListenPort(int listenPort) Configures the local port to listen for callbacks. The value0will choose a random port. Defaults to0.- Parameters:
listenPort- a valid port number
-
getListenHostname
-
setListenHostname
Configures the local hostname to listen for callbacks. The value0will choose a random port- Parameters:
listenHostname- a valid local hostname
-
login
public void login() throws IOException, ServerRequest.HttpFailure, org.keycloak.common.VerificationException, InterruptedException, OAuthErrorException, URISyntaxException- Throws:
IOExceptionServerRequest.HttpFailureorg.keycloak.common.VerificationExceptionInterruptedExceptionOAuthErrorExceptionURISyntaxException
-
login
public void login(PrintStream printer, Reader reader) throws IOException, ServerRequest.HttpFailure, org.keycloak.common.VerificationException, InterruptedException, OAuthErrorException, URISyntaxException - Throws:
IOExceptionServerRequest.HttpFailureorg.keycloak.common.VerificationExceptionInterruptedExceptionOAuthErrorExceptionURISyntaxException
-
logout
-
loginDesktop
public void loginDesktop() throws IOException, org.keycloak.common.VerificationException, OAuthErrorException, URISyntaxException, ServerRequest.HttpFailure, InterruptedException- Throws:
IOExceptionorg.keycloak.common.VerificationExceptionOAuthErrorExceptionURISyntaxExceptionServerRequest.HttpFailureInterruptedException
-
close
public void close() -
createAuthUrl
-
generatePkce
-
loginManual
public void loginManual() throws IOException, ServerRequest.HttpFailure, org.keycloak.common.VerificationException- Throws:
IOExceptionServerRequest.HttpFailureorg.keycloak.common.VerificationException
-
loginManual
public void loginManual(PrintStream printer, Reader reader) throws IOException, ServerRequest.HttpFailure, org.keycloak.common.VerificationException - Throws:
IOExceptionServerRequest.HttpFailureorg.keycloak.common.VerificationException
-
getTokenString
-
getTokenString
public String getTokenString(long minValidity, TimeUnit unit) throws org.keycloak.common.VerificationException, IOException, ServerRequest.HttpFailure - Throws:
org.keycloak.common.VerificationExceptionIOExceptionServerRequest.HttpFailure
-
refreshToken
public void refreshToken() throws IOException, ServerRequest.HttpFailure, org.keycloak.common.VerificationException- Throws:
IOExceptionServerRequest.HttpFailureorg.keycloak.common.VerificationException
-
refreshToken
public void refreshToken(String refreshToken) throws IOException, ServerRequest.HttpFailure, org.keycloak.common.VerificationException - Throws:
IOExceptionServerRequest.HttpFailureorg.keycloak.common.VerificationException
-
getToken
-
getIdToken
-
getIdTokenString
-
getRefreshToken
-
getTokenResponse
-
setDesktopProvider
-
isDesktopSupported
public boolean isDesktopSupported() -
getDeployment
-