org.apache.cxf.rs.security.oauth2.grants.code
Class AbstractAuthorizationCodeDataProvider
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAuthorizationCodeDataProvider
public AbstractAuthorizationCodeDataProvider()
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