Package org.keycloak.protocol.oidc
Class TokenManager.AccessTokenResponseBuilder
- java.lang.Object
-
- org.keycloak.protocol.oidc.TokenManager.AccessTokenResponseBuilder
-
- Enclosing class:
- TokenManager
public class TokenManager.AccessTokenResponseBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description AccessTokenResponseBuilder(RealmModel realm, ClientModel client, EventBuilder event, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenManager.AccessTokenResponseBuilder
accessToken(AccessToken accessToken)
AccessTokenResponse
build()
TokenManager.AccessTokenResponseBuilder
generateAccessToken()
TokenManager.AccessTokenResponseBuilder
generateAccessTokenHash()
TokenManager.AccessTokenResponseBuilder
generateCodeHash(String code)
TokenManager.AccessTokenResponseBuilder
generateIDToken()
TokenManager.AccessTokenResponseBuilder
generateIDToken(boolean isIdTokenAsDetachedSignature)
TokenManager.AccessTokenResponseBuilder
generateRefreshToken()
TokenManager.AccessTokenResponseBuilder
generateStateHash(String state)
AccessToken
getAccessToken()
IDToken
getIdToken()
RefreshToken
getRefreshToken()
boolean
isOfflineToken()
TokenManager.AccessTokenResponseBuilder
refreshToken(RefreshToken refreshToken)
-
-
-
Constructor Detail
-
AccessTokenResponseBuilder
public AccessTokenResponseBuilder(RealmModel realm, ClientModel client, EventBuilder event, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)
-
-
Method Detail
-
getAccessToken
public AccessToken getAccessToken()
-
getRefreshToken
public RefreshToken getRefreshToken()
-
getIdToken
public IDToken getIdToken()
-
accessToken
public TokenManager.AccessTokenResponseBuilder accessToken(AccessToken accessToken)
-
refreshToken
public TokenManager.AccessTokenResponseBuilder refreshToken(RefreshToken refreshToken)
-
generateAccessToken
public TokenManager.AccessTokenResponseBuilder generateAccessToken()
-
generateRefreshToken
public TokenManager.AccessTokenResponseBuilder generateRefreshToken()
-
generateIDToken
public TokenManager.AccessTokenResponseBuilder generateIDToken()
-
generateIDToken
public TokenManager.AccessTokenResponseBuilder generateIDToken(boolean isIdTokenAsDetachedSignature)
-
generateAccessTokenHash
public TokenManager.AccessTokenResponseBuilder generateAccessTokenHash()
-
generateCodeHash
public TokenManager.AccessTokenResponseBuilder generateCodeHash(String code)
-
generateStateHash
public TokenManager.AccessTokenResponseBuilder generateStateHash(String state)
-
isOfflineToken
public boolean isOfflineToken()
-
build
public AccessTokenResponse build()
-
-