Package org.oa4mp.server.qdl
Class CLC
- java.lang.Object
-
- org.oa4mp.server.qdl.CLC
-
- All Implemented Interfaces:
Serializable,org.qdl_lang.extensions.QDLMetaModule
public class CLC extends Object implements org.qdl_lang.extensions.QDLMetaModule
Created by Jeff Gaynor
on 7/22/21 at 10:41 AM- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCLC.AccessclassCLC.AccessATclassCLC.AccessRTclassCLC.ClearParamclassCLC.ClientCredentialsFlowclassCLC.CreateURIclassCLC.DeviceFlowclassCLC.EchoHTTPRequestclassCLC.EchoHttpResponseclassCLC.ExchangeclassCLC.GetCertclassCLC.GetClaimclassCLC.GetCurrentURIclassCLC.GetParamclassCLC.GrantclassCLC.InitMethodclassCLC.IntrospectclassCLC.JavaTraceclassCLC.ReadclassCLC.RefreshclassCLC.RevokeclassCLC.RFC7523classCLC.SetParamclassCLC.TokensclassCLC.UserInfoclassCLC.VerboseOnclassCLC.Write
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CLC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected edu.uiuc.ncsa.security.util.cli.InputLineargsToInputLine(String name, org.qdl_lang.variables.values.QDLValue[] qdlValues)Convert an array of strings (passed to the function) into anInputLineto be consumed by the CLC.protected voidcheckInit()voiddeserializeFromJSON(net.sf.json.JSONObject jsonObject)protected org.qdl_lang.variables.QDLStemgetTokens()protected voidhandleException(Throwable t)net.sf.json.JSONObjectserializeToJSON()protected voidsetTokens(org.qdl_lang.variables.QDLStem newTokens)For a stem with the keys access_token and refresh-token, set the current tokenprotected org.oa4mp.delegation.common.token.impl.AccessTokenImplstemToAT(org.qdl_lang.variables.QDLStem stem)protected org.oa4mp.delegation.common.token.impl.RefreshTokenImplstemToRT(org.qdl_lang.variables.QDLStem stem)protected org.qdl_lang.variables.QDLStemtokenToStem(org.oa4mp.delegation.common.token.impl.TokenImpl token)This is rather similar to theOA2CLCCommands.printToken(TokenImpl, boolean, boolean)and similar commands, except rather than spitting it all out as print statements, the information about the token is organized into a stem for further processing.
-
-
-
Field Detail
-
DUMMY_ARG
protected String DUMMY_ARG
-
INIT_NAME
protected String INIT_NAME
-
checkInitMessage
protected String checkInitMessage
-
CLAIMS_NAME
protected String CLAIMS_NAME
-
GRANT_NAME
protected String GRANT_NAME
-
ACCESS_NAME
protected String ACCESS_NAME
-
GET_CERT_NAME
protected String GET_CERT_NAME
-
CURRENT_URI
protected String CURRENT_URI
-
URI_NAME
protected String URI_NAME
-
REFRESH_NAME
protected String REFRESH_NAME
-
ECHO_HTTP_RESPONSE
protected String ECHO_HTTP_RESPONSE
-
ECHO_HTTP_REQUEST
protected String ECHO_HTTP_REQUEST
-
EXCHANGE_NAME
protected String EXCHANGE_NAME
-
EXCHANGE_RAW_RESPONSE
protected String EXCHANGE_RAW_RESPONSE
-
REVOKE_NAME
protected String REVOKE_NAME
-
DEVICE_FLOW_NAME
protected String DEVICE_FLOW_NAME
-
INTROSPECT_NAME
protected String INTROSPECT_NAME
-
USER_INFO_NAME
protected String USER_INFO_NAME
-
TOKENS_NAME
protected String TOKENS_NAME
-
WRITE_NAME
protected String WRITE_NAME
-
READ_NAME
protected String READ_NAME
-
CLEAR_NAME
protected String CLEAR_NAME
-
LOAD_NAME
protected String LOAD_NAME
-
GET_PARAM
protected String GET_PARAM
-
SET_PARAM
protected String SET_PARAM
-
CLEAR_PARAMS
protected String CLEAR_PARAMS
-
PARAM_FLAG_AUTHZ
protected static final String PARAM_FLAG_AUTHZ
- See Also:
- Constant Field Values
-
PARAM_FLAG_AUTHZ_SHORT
protected static final String PARAM_FLAG_AUTHZ_SHORT
- See Also:
- Constant Field Values
-
PARAM_FLAG_TOKEN
protected static final String PARAM_FLAG_TOKEN
- See Also:
- Constant Field Values
-
PARAM_FLAG_TOKEN_SHORT
protected static final String PARAM_FLAG_TOKEN_SHORT
- See Also:
- Constant Field Values
-
PARAM_FLAG_REFRESH
protected static final String PARAM_FLAG_REFRESH
- See Also:
- Constant Field Values
-
PARAM_FLAG_REFRESH_SHORT
protected static final String PARAM_FLAG_REFRESH_SHORT
- See Also:
- Constant Field Values
-
PARAM_FLAG_EXCHANGE
protected static final String PARAM_FLAG_EXCHANGE
- See Also:
- Constant Field Values
-
PARAM_FLAG_EXCHANGE_SHORT
protected static final String PARAM_FLAG_EXCHANGE_SHORT
- See Also:
- Constant Field Values
-
ACCESS_TOKEN_ACCESSOR
public static String ACCESS_TOKEN_ACCESSOR
-
REFRESH_TOKEN_ACCESSOR
public static String REFRESH_TOKEN_ACCESSOR
-
RFC7523_NAME
public static String RFC7523_NAME
-
VERBOSE_ON
public static String VERBOSE_ON
-
JAVA_TRACE
public static String JAVA_TRACE
-
CLIENT_CREDENTIALS_FLOW
public static String CLIENT_CREDENTIALS_FLOW
-
CLIENT_CREDENTIALS_RFC7523
public static String CLIENT_CREDENTIALS_RFC7523
-
-
Method Detail
-
checkInit
protected void checkInit()
-
getTokens
protected org.qdl_lang.variables.QDLStem getTokens()
-
setTokens
protected void setTokens(org.qdl_lang.variables.QDLStem newTokens)
For a stem with the keys access_token and refresh-token, set the current token- Parameters:
newTokens-
-
argsToInputLine
protected edu.uiuc.ncsa.security.util.cli.InputLine argsToInputLine(String name, org.qdl_lang.variables.values.QDLValue[] qdlValues)
Convert an array of strings (passed to the function) into anInputLineto be consumed by the CLC.- Parameters:
name-qdlValues-- Returns:
-
handleException
protected void handleException(Throwable t)
-
tokenToStem
protected org.qdl_lang.variables.QDLStem tokenToStem(org.oa4mp.delegation.common.token.impl.TokenImpl token)
This is rather similar to theOA2CLCCommands.printToken(TokenImpl, boolean, boolean)and similar commands, except rather than spitting it all out as print statements, the information about the token is organized into a stem for further processing.- Parameters:
token-- Returns:
-
stemToAT
protected org.oa4mp.delegation.common.token.impl.AccessTokenImpl stemToAT(org.qdl_lang.variables.QDLStem stem)
-
stemToRT
protected org.oa4mp.delegation.common.token.impl.RefreshTokenImpl stemToRT(org.qdl_lang.variables.QDLStem stem)
-
serializeToJSON
public net.sf.json.JSONObject serializeToJSON()
- Specified by:
serializeToJSONin interfaceorg.qdl_lang.extensions.QDLMetaModule
-
deserializeFromJSON
public void deserializeFromJSON(net.sf.json.JSONObject jsonObject)
- Specified by:
deserializeFromJSONin interfaceorg.qdl_lang.extensions.QDLMetaModule
-
-