Class AGServer2
- java.lang.Object
-
- org.oa4mp.delegation.server.client.ASImpl
-
- org.oa4mp.delegation.server.client.AGServer2
-
- All Implemented Interfaces:
AGServer
,AddressableServer
,DoubleDispatchServer
,Server
,OA2Constants
public class AGServer2 extends ASImpl implements AGServer, OA2Constants
This class manages the client call to the authorization grant serverCreated by Jeff Gaynor
on 6/4/13 at 4:27 PM
-
-
Field Summary
Fields Modifier and Type Field Description static int
STATE_LENGTH
The number of bytes in the random state string sent to the server.-
Fields inherited from interface org.oa4mp.delegation.server.OA2Constants
ACCESS_TOKEN, ACCESS_TOKEN_LIFETIME, ACCESS_TYPE, AUTH_GRANT_TOKEN_LIFETIME, AUTHORIZATION_CODE, AUTHORIZATION_CODE_VALUE, AUTHORIZATION_TIME, BEARER_TOKEN_TYPE, CERT_LIFETIME, CERT_REQ, CLIENT_ID, CLIENT_SECRET, DESCRIPTION, DISPLAY, DISPLAY_PAGE, DISPLAY_POPUP, DISPLAY_TOUCH, DISPLAY_WAP, EA_SUPPORT, ERROR, ERROR_DESCRIPTION, ERROR_URI, EXPIRES_IN, FORM_ENCODING, GRANT_TYPE, GRANT_TYPE_AUTHORIZATION_CODE, GRANT_TYPE_CLIENT_CREDENTIALS, GRANT_TYPE_DEVICE_FLOW, GRANT_TYPE_IMPLICIT, GRANT_TYPE_REFRESH_TOKEN, GRANT_TYPE_TOKEN_INFO, ID_TOKEN, ID_TOKEN_HINT, ID_TOKEN_IDENTIFIER, ID_TOKEN_LIFETIME, MAX_ACCESS_TOKEN_LIFETIME, MAX_AGE, MAX_ID_TOKEN_LIFETIME, MAX_REFRESH_LIFETIME, NONCE, PROMPT, PROMPT_CONSENT, PROMPT_LOGIN, PROMPT_NONE, PROMPT_SELECT_ACCOUNT, REDIRECT_URI, REFRESH_LIFETIME, REFRESH_TOKEN, REQUEST, REQUEST_URI, RESPONSE_MODE, RESPONSE_MODE_FORM_POST, RESPONSE_MODE_FRAGMENT, RESPONSE_MODE_QUERY, RESPONSE_TYPE, RESPONSE_TYPE_CODE, RESPONSE_TYPE_ID_TOKEN, RESPONSE_TYPE_NONE, RESPONSE_TYPE_TOKEN, SCOPE, SKIP_SERVER_SCRIPTS, STATE, STRICT_SCOPES, TOKEN_ENDPOINT_AUTH_BASIC, TOKEN_ENDPOINT_AUTH_NONE, TOKEN_ENDPOINT_AUTH_POST, TOKEN_ENDPOINT_AUTH_PRIVATE_KEY, TOKEN_TYPE
-
-
Constructor Summary
Constructors Constructor Description AGServer2(edu.uiuc.ncsa.security.servlet.ServiceClient serviceClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.uiuc.ncsa.security.servlet.ServiceClient
getServiceClient()
AGResponse
processAGRequest(AGRequest agRequest)
Accepts AGRequest, obtains auth code, packs said authCode into AGResponse and returns AGResponse-
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
-
getServiceClient
public edu.uiuc.ncsa.security.servlet.ServiceClient getServiceClient()
-
processAGRequest
public AGResponse processAGRequest(AGRequest agRequest)
Accepts AGRequest, obtains auth code, packs said authCode into AGResponse and returns AGResponse- Specified by:
processAGRequest
in interfaceAGServer
- Parameters:
agRequest
- Authorization grant request- Returns:
- Authorization grant response
-
-