public class OpenIDTokenIssuer extends Object
Constructor and Description |
---|
OpenIDTokenIssuer(OpenIdConnectTokenStore tokenStore,
ResourceOwnerSessionValidator resourceOwnerSessionValidator)
Constructs a new OpenIDTokenIssuer.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getOps(AccessToken accessToken,
OAuth2Request request)
Gets the ops value for the OpenId Token.
|
Map.Entry<String,String> |
issueToken(AccessToken accessToken,
OAuth2Request request)
Issues an OpenId Connect token, using the details of the access token.
|
@Inject public OpenIDTokenIssuer(OpenIdConnectTokenStore tokenStore, ResourceOwnerSessionValidator resourceOwnerSessionValidator)
tokenStore
- An instance of the OpenIdConnectTokenStore.public Map.Entry<String,String> issueToken(AccessToken accessToken, OAuth2Request request) throws ServerException, InvalidClientException, NotFoundException
accessToken
- The access token requested by the OAuth2 request.request
- The OAuth2 request.Map.Entry
of the token name with the Token instance.ServerException
- If any internal server error occurs.InvalidClientException
- If either the request does not contain the client's id or the client fails to be
authenticated.NotFoundException
- If the realm does not have an OAuth 2.0 provider service.protected String getOps(AccessToken accessToken, OAuth2Request request)
accessToken
- The access token requested by the OAuth2 request.request
- The OAuth2 request.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.