Class DS2
- java.lang.Object
-
- org.oa4mp.delegation.client.DelegationService
-
- org.oa4mp.delegation.server.client.DS2
-
- All Implemented Interfaces:
Server
public class DS2 extends DelegationService
Delegation service for OIDCCreated by Jeff Gaynor
on 11/25/13 at 2:20 PM
-
-
Constructor Summary
Constructors Constructor Description DS2(AGServer agServer, ATServer atServer, PAServer paServer, UIServer2 uiServer, RTServer rtServer, RFC6749_4_4Server rfc6749_4_4Server, RFC7009Server rfc7009Server, RFC7662Server rfc7662Server, RFC7523Server rfc7523Server, RFC8623Server rfc8623Server)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
createRedirectURL(DelegationRequest delegationAssetRequest, AGResponse agResp)
Creates redirect URLRFC7009Server
getRfc7009Server()
RFC7662Server
getRfc7662Server()
RFC8623Server
getRfc8623Server()
RTServer
getRtServer()
UIServer2
getUiServer()
Getter for UIServerUIResponse
getUserInfo(UIRequest uiRequest)
DelegationResponse
processDelegationRequest(DelegationRequest delegationRequest)
Starts the delegation process.RTResponse
refresh(RTRequest refreshTokenRequest)
As per spec., issue request for refresh from server.RFC6749_4_4_Response
rfc6749_4_4(RFC6749_4_4Request request)
RFC7009Response
rfc7009(RFC7009Request request)
RFC7523Response
rfc7523(RFC7523Request request)
RFC7662Response
rfc7662(RFC7662Request request)
void
setRfc8623Server(RFC8623Server rfc8623Server)
void
setRtServer(RTServer rtServer)
-
Methods inherited from class org.oa4mp.delegation.client.DelegationService
getAgServer, getAT, getAT, getAT, getAtServer, getCert, getPaServer, process, processAssetRequest
-
-
-
-
Constructor Detail
-
DS2
public DS2(AGServer agServer, ATServer atServer, PAServer paServer, UIServer2 uiServer, RTServer rtServer, RFC6749_4_4Server rfc6749_4_4Server, RFC7009Server rfc7009Server, RFC7662Server rfc7662Server, RFC7523Server rfc7523Server, RFC8623Server rfc8623Server)
Constructor- Parameters:
agServer
- Authorization grant handler for clientatServer
- Access token handler for clientpaServer
- Protected asset (cert) request handler for clientuiServer
- UserInfo handler for client
-
-
Method Detail
-
getRfc8623Server
public RFC8623Server getRfc8623Server()
-
setRfc8623Server
public void setRfc8623Server(RFC8623Server rfc8623Server)
-
getUiServer
public UIServer2 getUiServer()
Getter for UIServer- Returns:
- UserInfo handler
-
getUserInfo
public UIResponse getUserInfo(UIRequest uiRequest)
-
getRtServer
public RTServer getRtServer()
-
setRtServer
public void setRtServer(RTServer rtServer)
-
refresh
public RTResponse refresh(RTRequest refreshTokenRequest)
As per spec., issue request for refresh from server. ReturnedRTResponse
has the associatedRefreshToken
andAccessToken
.- Returns:
-
rfc7009
public RFC7009Response rfc7009(RFC7009Request request)
-
rfc7662
public RFC7662Response rfc7662(RFC7662Request request)
-
rfc6749_4_4
public RFC6749_4_4_Response rfc6749_4_4(RFC6749_4_4Request request)
-
rfc7523
public RFC7523Response rfc7523(RFC7523Request request)
-
processDelegationRequest
public DelegationResponse processDelegationRequest(DelegationRequest delegationRequest)
Description copied from class:DelegationService
Starts the delegation process. This requests that the server permit delegation.- Overrides:
processDelegationRequest
in classDelegationService
- Returns:
-
createRedirectURL
public URI createRedirectURL(DelegationRequest delegationAssetRequest, AGResponse agResp)
Creates redirect URL- Specified by:
createRedirectURL
in classDelegationService
- Parameters:
delegationAssetRequest
- Delegation asset requestagResp
- Authorization grant response- Returns:
- URI for redirect
-
getRfc7662Server
public RFC7662Server getRfc7662Server()
-
getRfc7009Server
public RFC7009Server getRfc7009Server()
-
-