Apache CXF API

org.apache.cxf.rs.security.oauth2.grants.code
Class AbstractAuthorizationCodeDataProvider

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.grants.code.AbstractAuthorizationCodeDataProvider
All Implemented Interfaces:
AuthorizationCodeDataProvider, OAuthDataProvider

public abstract class AbstractAuthorizationCodeDataProvider
extends Object
implements AuthorizationCodeDataProvider

Abstract AuthorizationCodeDataProvider implementation


Constructor Summary
AbstractAuthorizationCodeDataProvider()
           
 
Method Summary
 ServerAuthorizationCodeGrant createCodeGrant(AuthorizationCodeRegistration reg)
          Creates a temporarily code grant which will capture the information about the Client requesting the access to the resource owner's resources
protected  List<String> getApprovedScopes(AuthorizationCodeRegistration reg)
           
protected  String getCode(AuthorizationCodeRegistration reg)
           
 long getGrantLifetime()
           
protected  long getIssuedAt()
           
 void setGrantLifetime(long lifetime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeDataProvider
removeCodeGrant
 
Methods inherited from interface org.apache.cxf.rs.security.oauth2.provider.OAuthDataProvider
convertScopeToPermissions, createAccessToken, getAccessToken, getClient, getPreauthorizedToken, refreshAccessToken, removeAccessToken, revokeToken
 

Constructor Detail

AbstractAuthorizationCodeDataProvider

public AbstractAuthorizationCodeDataProvider()
Method Detail

createCodeGrant

public ServerAuthorizationCodeGrant createCodeGrant(AuthorizationCodeRegistration reg)
                                             throws OAuthServiceException
Description copied from interface: AuthorizationCodeDataProvider
Creates a temporarily code grant which will capture the information about the Client requesting the access to the resource owner's resources

Specified by:
createCodeGrant in interface AuthorizationCodeDataProvider
Parameters:
reg - information about the client code grant request
Returns:
new code grant
Throws:
OAuthServiceException
See Also:
AuthorizationCodeRegistration, ServerAuthorizationCodeGrant

getApprovedScopes

protected List<String> getApprovedScopes(AuthorizationCodeRegistration reg)

getCode

protected String getCode(AuthorizationCodeRegistration reg)

getGrantLifetime

public long getGrantLifetime()

setGrantLifetime

public void setGrantLifetime(long lifetime)

getIssuedAt

protected long getIssuedAt()

Apache CXF API

Apache CXF