Package org.oa4mp.server.loader.qdl.util
Class JWTCommands
- java.lang.Object
-
- org.oa4mp.server.loader.qdl.util.JWTCommands
-
public class JWTCommands extends Object
Created by Jeff Gaynor
on 4/7/20 at 1:06 PM
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJWTCommands.Create_UUIDclassJWTCommands.CreateJWKclassJWTCommands.CreateJWTclassJWTCommands.DefaultKeyclassJWTCommands.GetHeaderclassJWTCommands.GetPayloadclassJWTCommands.KeyInfoclassJWTCommands.KeysclassJWTCommands.LoadJWKclassJWTCommands.SaveKeysclassJWTCommands.SymmKeysclassJWTCommands.TestAudienceclassJWTCommands.TestClaimsclassJWTCommands.TestScopesA list of scopes for testing.classJWTCommands.TestXAsclassJWTCommands.VerifyJWT
-
Field Summary
Fields Modifier and Type Field Description static StringARG_DEFAULT_KEY_IDstatic StringARG_EC_CURVE_TYPEstatic StringARG_FILE_OVERWRITE_TYPEstatic StringARG_FILE_PATH_TYPEstatic StringARG_KEY_TYPEstatic StringARG_RSA_KEY_SIZE_TYPEstatic StringARG_SET_TO_CURRENT_KEYS_TYPEprotected StringCREATE_JWT_NAMEprotected StringCREATE_KEYS_NAMEprotected StringCREATE_UUIDprotected StringCURRENT_KEYSprotected StringDEFAULT_KEY_NAMEprotected StringGET_HEADER_NAMEprotected StringGET_PAYLOAD_NAMEprotected StringKEY_INFO_NAMEprotected StringLOAD_KEYS_NAMEprotected StringSAVE_KEYS_NAMEprotected StringVERIFY_JWT_NAME
-
Constructor Summary
Constructors Constructor Description JWTCommands(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.uiuc.ncsa.security.util.jwk.JWKUtil2getJsonWebKeyUtil()edu.uiuc.ncsa.security.util.jwk.JSONWebKeysgetJwks()org.qdl_lang.variables.QDLStemgetJwkStem()edu.uiuc.ncsa.security.util.jwk.JWKUtil2getJwkUtil()edu.uiuc.ncsa.security.core.util.MyLoggingFacadegetLogger()SigningCommandsgetSigningCommands()booleanhasJWKS()voidsetJwks(edu.uiuc.ncsa.security.util.jwk.JSONWebKeys jwks)voidsetJwkUtil(edu.uiuc.ncsa.security.util.jwk.JWKUtil2 jwkUtil)voidsetLogger(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)protected voidwriteWebkeys(org.qdl_lang.state.State state, net.sf.json.JSONObject jsonObject, String target)
-
-
-
Field Detail
-
CREATE_KEYS_NAME
protected String CREATE_KEYS_NAME
-
ARG_KEY_TYPE
public static String ARG_KEY_TYPE
-
ARG_DEFAULT_KEY_ID
public static String ARG_DEFAULT_KEY_ID
-
ARG_RSA_KEY_SIZE_TYPE
public static String ARG_RSA_KEY_SIZE_TYPE
-
ARG_EC_CURVE_TYPE
public static String ARG_EC_CURVE_TYPE
-
ARG_FILE_PATH_TYPE
public static String ARG_FILE_PATH_TYPE
-
ARG_FILE_OVERWRITE_TYPE
public static String ARG_FILE_OVERWRITE_TYPE
-
ARG_SET_TO_CURRENT_KEYS_TYPE
public static String ARG_SET_TO_CURRENT_KEYS_TYPE
-
LOAD_KEYS_NAME
protected String LOAD_KEYS_NAME
-
SAVE_KEYS_NAME
protected String SAVE_KEYS_NAME
-
DEFAULT_KEY_NAME
protected String DEFAULT_KEY_NAME
-
CURRENT_KEYS
protected String CURRENT_KEYS
-
CREATE_JWT_NAME
protected String CREATE_JWT_NAME
-
KEY_INFO_NAME
protected String KEY_INFO_NAME
-
VERIFY_JWT_NAME
protected String VERIFY_JWT_NAME
-
GET_HEADER_NAME
protected String GET_HEADER_NAME
-
GET_PAYLOAD_NAME
protected String GET_PAYLOAD_NAME
-
CREATE_UUID
protected String CREATE_UUID
-
-
Method Detail
-
hasJWKS
public boolean hasJWKS()
-
getJwks
public edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getJwks()
-
setJwks
public void setJwks(edu.uiuc.ncsa.security.util.jwk.JSONWebKeys jwks)
-
getJwkStem
public org.qdl_lang.variables.QDLStem getJwkStem()
-
getJwkUtil
public edu.uiuc.ncsa.security.util.jwk.JWKUtil2 getJwkUtil()
-
setJwkUtil
public void setJwkUtil(edu.uiuc.ncsa.security.util.jwk.JWKUtil2 jwkUtil)
-
getLogger
public edu.uiuc.ncsa.security.core.util.MyLoggingFacade getLogger()
-
setLogger
public void setLogger(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
-
getSigningCommands
public SigningCommands getSigningCommands() throws Throwable
- Throws:
Throwable
-
getJsonWebKeyUtil
public edu.uiuc.ncsa.security.util.jwk.JWKUtil2 getJsonWebKeyUtil()
-
-