Interface OAuth20AccessTokenFactory
- All Superinterfaces:
org.apereo.cas.ticket.TicketFactory
public interface OAuth20AccessTokenFactory
extends org.apereo.cas.ticket.TicketFactory
Factory to create OAuth access tokens.
- Since:
- 5.0.0
-
Field Summary
Fields inherited from interface org.apereo.cas.ticket.TicketFactory
BEAN_NAME -
Method Summary
Modifier and TypeMethodDescriptiondefault OAuth20AccessTokencreate(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, Collection<String> scopes, String clientId, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType) Create access token.create(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket, Collection<String> scopes, String token, String clientId, Map<String, Map<String, Object>> requestClaims, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType) Create an access token.Methods inherited from interface org.apereo.cas.ticket.TicketFactory
get, getExpirationPolicyBuilder, getName, getTicketType
-
Method Details
-
create
OAuth20AccessToken create(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket, Collection<String> scopes, String token, String clientId, Map<String, Map<String, throws ThrowableObject>> requestClaims, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType) Create an access token.- Parameters:
service- the serviceauthentication- the authenticationticketGrantingTicket- the ticket granting ticketscopes- the scopestoken- the tokenclientId- the client idrequestClaims- the request claimsresponseType- the response typegrantType- the grant type- Returns:
- the access token
- Throws:
Throwable- the throwable
-
create
default OAuth20AccessToken create(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, Collection<String> scopes, String clientId, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType) throws Throwable Create access token.- Parameters:
service- the serviceauthentication- the authenticationscopes- the scopesclientId- the client idresponseType- the response typegrantType- the grant type- Returns:
- the access token
- Throws:
Throwable- the throwable
-