public class DefaultOAuthCodeFactory extends java.lang.Object implements OAuthCodeFactory
Modifier and Type | Field and Description |
---|---|
protected ExpirationPolicy |
expirationPolicy
ExpirationPolicy for OAuth code.
|
protected UniqueTicketIdGenerator |
oAuthCodeIdGenerator
Default instance for the ticket id generator.
|
Constructor and Description |
---|
DefaultOAuthCodeFactory() |
Modifier and Type | Method and Description |
---|---|
OAuthCode |
create(Service service,
Authentication authentication)
Create an OAuth code.
|
<T extends TicketFactory> |
get(java.lang.Class<? extends Ticket> clazz)
Get ticket factory.
|
ExpirationPolicy |
getExpirationPolicy() |
UniqueTicketIdGenerator |
getoAuthCodeIdGenerator()
Get the OAuth code identifier generator.
|
void |
setExpirationPolicy(ExpirationPolicy expirationPolicy) |
void |
setoAuthCodeIdGenerator(UniqueTicketIdGenerator oAuthCodeIdGenerator)
Set the OAuth code identifier generator.
|
protected UniqueTicketIdGenerator oAuthCodeIdGenerator
protected ExpirationPolicy expirationPolicy
public OAuthCode create(Service service, Authentication authentication)
OAuthCodeFactory
create
in interface OAuthCodeFactory
service
- the serviceauthentication
- the authenticationpublic <T extends TicketFactory> T get(java.lang.Class<? extends Ticket> clazz)
TicketFactory
get
in interface TicketFactory
T
- the type parameterclazz
- the clazzpublic UniqueTicketIdGenerator getoAuthCodeIdGenerator()
public void setoAuthCodeIdGenerator(UniqueTicketIdGenerator oAuthCodeIdGenerator)
oAuthCodeIdGenerator
- the OAuth code identifier generator.public ExpirationPolicy getExpirationPolicy()
public void setExpirationPolicy(ExpirationPolicy expirationPolicy)