Class JsonWebKey
- java.lang.Object
-
- org.apache.cxf.jaxrs.json.basic.JsonMapObject
-
- org.apache.cxf.rs.security.jose.jwk.JsonWebKey
-
- All Implemented Interfaces:
Serializable
public class JsonWebKey extends JsonMapObject
- See Also:
- Serialized Form
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description JsonWebKey()JsonWebKey(Map<String,Object> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithm()StringgetKeyId()List<KeyOperation>getKeyOperation()ObjectgetKeyProperty(String name)KeyTypegetKeyType()PublicKeyUsegetPublicKeyUse()List<String>getX509Chain()StringgetX509Thumbprint()StringgetX509ThumbprintSHA256()StringgetX509Url()voidsetAlgorithm(String algorithm)voidsetKeyId(String kid)voidsetKeyOperation(List<KeyOperation> keyOperation)JsonWebKeysetKeyProperty(String name, Object value)voidsetKeyType(KeyType keyType)voidsetPublicKeyUse(PublicKeyUse use)voidsetX509Chain(List<String> x509Chain)voidsetX509Thumbprint(String x509Thumbprint)voidsetX509ThumbprintSHA256(String x509Thumbprint)voidsetX509Url(String x509Url)-
Methods inherited from class org.apache.cxf.jaxrs.json.basic.JsonMapObject
asMap, containsProperty, equals, getBooleanProperty, getIntegerProperty, getJsonMapProperty, getListMapProperty, getListStringProperty, getLongProperty, getMapProperty, getProperty, getStringProperty, getUpdateCount, hashCode, removeProperty, setProperty, size
-
-
-
-
Field Detail
-
KEY_TYPE
public static final String KEY_TYPE
- See Also:
- Constant Field Values
-
PUBLIC_KEY_USE
public static final String PUBLIC_KEY_USE
- See Also:
- Constant Field Values
-
KEY_OPERATIONS
public static final String KEY_OPERATIONS
- See Also:
- Constant Field Values
-
KEY_ALGO
public static final String KEY_ALGO
- See Also:
- Constant Field Values
-
KEY_ID
public static final String KEY_ID
- See Also:
- Constant Field Values
-
X509_URL
public static final String X509_URL
- See Also:
- Constant Field Values
-
X509_CHAIN
public static final String X509_CHAIN
- See Also:
- Constant Field Values
-
X509_THUMBPRINT
public static final String X509_THUMBPRINT
- See Also:
- Constant Field Values
-
X509_THUMBPRINT_SHA256
public static final String X509_THUMBPRINT_SHA256
- See Also:
- Constant Field Values
-
KEY_TYPE_RSA
public static final String KEY_TYPE_RSA
- See Also:
- Constant Field Values
-
RSA_MODULUS
public static final String RSA_MODULUS
- See Also:
- Constant Field Values
-
RSA_PUBLIC_EXP
public static final String RSA_PUBLIC_EXP
- See Also:
- Constant Field Values
-
RSA_PRIVATE_EXP
public static final String RSA_PRIVATE_EXP
- See Also:
- Constant Field Values
-
RSA_FIRST_PRIME_FACTOR
public static final String RSA_FIRST_PRIME_FACTOR
- See Also:
- Constant Field Values
-
RSA_SECOND_PRIME_FACTOR
public static final String RSA_SECOND_PRIME_FACTOR
- See Also:
- Constant Field Values
-
RSA_FIRST_PRIME_CRT
public static final String RSA_FIRST_PRIME_CRT
- See Also:
- Constant Field Values
-
RSA_SECOND_PRIME_CRT
public static final String RSA_SECOND_PRIME_CRT
- See Also:
- Constant Field Values
-
RSA_FIRST_CRT_COEFFICIENT
public static final String RSA_FIRST_CRT_COEFFICIENT
- See Also:
- Constant Field Values
-
KEY_TYPE_OCTET
public static final String KEY_TYPE_OCTET
- See Also:
- Constant Field Values
-
OCTET_KEY_VALUE
public static final String OCTET_KEY_VALUE
- See Also:
- Constant Field Values
-
KEY_TYPE_ELLIPTIC
public static final String KEY_TYPE_ELLIPTIC
- See Also:
- Constant Field Values
-
EC_CURVE
public static final String EC_CURVE
- See Also:
- Constant Field Values
-
EC_CURVE_P256
public static final String EC_CURVE_P256
- See Also:
- Constant Field Values
-
EC_CURVE_P384
public static final String EC_CURVE_P384
- See Also:
- Constant Field Values
-
EC_CURVE_P521
public static final String EC_CURVE_P521
- See Also:
- Constant Field Values
-
EC_X_COORDINATE
public static final String EC_X_COORDINATE
- See Also:
- Constant Field Values
-
EC_Y_COORDINATE
public static final String EC_Y_COORDINATE
- See Also:
- Constant Field Values
-
EC_PRIVATE_KEY
public static final String EC_PRIVATE_KEY
- See Also:
- Constant Field Values
-
PUBLIC_KEY_USE_SIGN
public static final String PUBLIC_KEY_USE_SIGN
- See Also:
- Constant Field Values
-
PUBLIC_KEY_USE_ENCRYPT
public static final String PUBLIC_KEY_USE_ENCRYPT
- See Also:
- Constant Field Values
-
KEY_OPER_SIGN
public static final String KEY_OPER_SIGN
- See Also:
- Constant Field Values
-
KEY_OPER_VERIFY
public static final String KEY_OPER_VERIFY
- See Also:
- Constant Field Values
-
KEY_OPER_ENCRYPT
public static final String KEY_OPER_ENCRYPT
- See Also:
- Constant Field Values
-
KEY_OPER_DECRYPT
public static final String KEY_OPER_DECRYPT
- See Also:
- Constant Field Values
-
KEY_OPER_WRAP_KEY
public static final String KEY_OPER_WRAP_KEY
- See Also:
- Constant Field Values
-
KEY_OPER_UNWRAP_KEY
public static final String KEY_OPER_UNWRAP_KEY
- See Also:
- Constant Field Values
-
KEY_OPER_DERIVE_KEY
public static final String KEY_OPER_DERIVE_KEY
- See Also:
- Constant Field Values
-
KEY_OPER_DERIVE_BITS
public static final String KEY_OPER_DERIVE_BITS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setKeyType
public void setKeyType(KeyType keyType)
-
getKeyType
public KeyType getKeyType()
-
setPublicKeyUse
public void setPublicKeyUse(PublicKeyUse use)
-
getPublicKeyUse
public PublicKeyUse getPublicKeyUse()
-
setKeyOperation
public void setKeyOperation(List<KeyOperation> keyOperation)
-
getKeyOperation
public List<KeyOperation> getKeyOperation()
-
setAlgorithm
public void setAlgorithm(String algorithm)
-
getAlgorithm
public String getAlgorithm()
-
setKeyId
public void setKeyId(String kid)
-
getKeyId
public String getKeyId()
-
setX509Url
public void setX509Url(String x509Url)
-
getX509Url
public String getX509Url()
-
setX509Thumbprint
public void setX509Thumbprint(String x509Thumbprint)
-
getX509Thumbprint
public String getX509Thumbprint()
-
setX509ThumbprintSHA256
public void setX509ThumbprintSHA256(String x509Thumbprint)
-
getX509ThumbprintSHA256
public String getX509ThumbprintSHA256()
-
setKeyProperty
public JsonWebKey setKeyProperty(String name, Object value)
-
-