Interface OAuth20AccessTokenFactory
-
- All Superinterfaces:
org.apereo.cas.ticket.TicketFactory
public interface OAuth20AccessTokenFactory extends org.apereo.cas.ticket.TicketFactoryFactory to create OAuth access tokens.- Since:
- 5.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default OAuth20AccessTokencreate(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, java.util.Collection<java.lang.String> scopes, java.lang.String clientId, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType)Create access token.OAuth20AccessTokencreate(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket, java.util.Collection<java.lang.String> scopes, java.lang.String token, java.lang.String clientId, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> requestClaims, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType)Create an access token.
-
-
-
Method Detail
-
create
OAuth20AccessToken create(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket, java.util.Collection<java.lang.String> scopes, java.lang.String token, java.lang.String clientId, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> 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
-
create
default OAuth20AccessToken create(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, java.util.Collection<java.lang.String> scopes, java.lang.String clientId, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType)
Create access token.- Parameters:
service- the serviceauthentication- the authenticationscopes- the scopesclientId- the client idresponseType- the response typegrantType- the grant type- Returns:
- the access token
-
-