Class ATServer2
- java.lang.Object
-
- org.oa4mp.delegation.server.client.ASImpl
-
- org.oa4mp.delegation.server.client.TokenAwareServer
-
- org.oa4mp.delegation.server.client.ATServer2
-
- All Implemented Interfaces:
ATServer
,AddressableServer
,DoubleDispatchServer
,Server
public class ATServer2 extends TokenAwareServer implements ATServer
This class handles the client call to the access token endpointCreated by Jeff Gaynor
on 6/4/13 at 4:33 PM
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ATServer2.IDTokenEntry
Placeholder class for storing ID tokens.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ATResponse2
createResponse(AccessTokenImpl at, RefreshTokenImpl rt, IDTokenImpl idToken)
protected ATResponse2
getAccessToken(ATRequest atRequest)
Gets access token.static HashMap<URI,IDTokenImpl>
getIDTokenStore()
ATResponse
processATRequest(ATRequest atRequest)
Processes access token request-
Methods inherited from class org.oa4mp.delegation.server.client.TokenAwareServer
getAndCheckIDToken, getAndCheckResponse, getJsonWebKeys, getServiceClient, getTokenEndpoint, setTokenEndpoint
-
Methods inherited from class org.oa4mp.delegation.server.client.ASImpl
getAddress, process
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.oa4mp.delegation.common.services.DoubleDispatchServer
process
-
-
-
-
Method Detail
-
getIDTokenStore
public static HashMap<URI,IDTokenImpl> getIDTokenStore()
-
processATRequest
public ATResponse processATRequest(ATRequest atRequest)
Processes access token request- Specified by:
processATRequest
in interfaceATServer
- Parameters:
atRequest
- Access token request- Returns:
- Access token response
-
getAccessToken
protected ATResponse2 getAccessToken(ATRequest atRequest)
Gets access token. This also returns the refresh token (if any) in the response. Note that there are claims that are returned in the a parameter map for the "subject" and the "issued at" claims. Neither of these require any processing here, but clients should have them available to enforce policies. The id token is returned as a parameter in the response as well as a json object.- Parameters:
atRequest
- Access token request- Returns:
- Access token response
-
createResponse
protected ATResponse2 createResponse(AccessTokenImpl at, RefreshTokenImpl rt, IDTokenImpl idToken)
-
-