public class DefaultOAuthCodeFactory extends java.lang.Object implements OAuthCodeFactory
| Modifier and Type | Field and Description |
|---|---|
protected org.apereo.cas.ticket.ExpirationPolicy |
expirationPolicy
ExpirationPolicy for refresh tokens.
|
protected org.apereo.cas.ticket.UniqueTicketIdGenerator |
oAuthCodeIdGenerator
Default instance for the ticket id generator.
|
| Constructor and Description |
|---|
DefaultOAuthCodeFactory(org.apereo.cas.ticket.ExpirationPolicy expirationPolicy) |
| Modifier and Type | Method and Description |
|---|---|
org.apereo.cas.ticket.code.OAuthCode |
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)
Create an OAuth code.
|
org.apereo.cas.ticket.TicketFactory |
get(java.lang.Class<? extends org.apereo.cas.ticket.Ticket> clazz) |
protected final org.apereo.cas.ticket.UniqueTicketIdGenerator oAuthCodeIdGenerator
protected final org.apereo.cas.ticket.ExpirationPolicy expirationPolicy
public DefaultOAuthCodeFactory(org.apereo.cas.ticket.ExpirationPolicy expirationPolicy)
public org.apereo.cas.ticket.code.OAuthCode 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)
OAuthCodeFactorycreate in interface OAuthCodeFactoryservice - the serviceauthentication - the authenticationticketGrantingTicket - the ticket granting ticketscopes - the scopespublic org.apereo.cas.ticket.TicketFactory get(java.lang.Class<? extends org.apereo.cas.ticket.Ticket> clazz)
get in interface org.apereo.cas.ticket.TicketFactory