org.apache.cxf.rs.security.jose.jwk
Class JsonWebKey

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.json.JsonMapObject
      extended by org.apache.cxf.rs.security.jose.jwk.JsonWebKey

public class JsonWebKey
extends org.apache.cxf.jaxrs.provider.json.JsonMapObject


Field Summary
static String EC_CURVE
           
static String EC_CURVE_P256
           
static String EC_CURVE_P384
           
static String EC_CURVE_P521
           
static String EC_PRIVATE_KEY
           
static String EC_X_COORDINATE
           
static String EC_Y_COORDINATE
           
static String KEY_ALGO
           
static String KEY_ID
           
static String KEY_OPER_DECRYPT
           
static String KEY_OPER_ENCRYPT
           
static String KEY_OPER_SIGN
           
static String KEY_OPER_VERIFY
           
static String KEY_OPERATIONS
           
static String KEY_TYPE
           
static String KEY_TYPE_ELLIPTIC
           
static String KEY_TYPE_OCTET
           
static String KEY_TYPE_RSA
           
static String OCTET_KEY_VALUE
           
static String PUBLIC_KEY_USE
           
static String PUBLIC_KEY_USE_ENCRYPT
           
static String PUBLIC_KEY_USE_SIGN
           
static String RSA_FIRST_CRT_COEFFICIENT
           
static String RSA_FIRST_PRIME_CRT
           
static String RSA_FIRST_PRIME_FACTOR
           
static String RSA_MODULUS
           
static String RSA_PRIVATE_EXP
           
static String RSA_PUBLIC_EXP
           
static String RSA_SECOND_PRIME_CRT
           
static String RSA_SECOND_PRIME_FACTOR
           
static String X509_CHAIN
           
static String X509_THUMBPRINT
           
static String X509_THUMBPRINT_SHA256
           
static String X509_URL
           
 
Constructor Summary
JsonWebKey()
           
JsonWebKey(Map<String,Object> values)
           
 
Method Summary
 String getAlgorithm()
           
 List<String> getKeyOperation()
           
 Object getKeyProperty(String name)
           
 String getKeyType()
           
 String getKid()
           
 String getPublicKeyUse()
           
 List<String> getX509Chain()
           
 String getX509Thumbprint()
           
 String getX509ThumbprintSHA256()
           
 String getX509Url()
           
 void setAlgorithm(String algorithm)
           
 void setKeyOperation(List<String> keyOperation)
           
 JsonWebKey setKeyProperty(String name, Object value)
           
 void setKeyType(String keyType)
           
 void setKid(String kid)
           
 void setPublicKeyUse(String use)
           
 void setX509Chain(List<String> x509Chain)
           
 void setX509Thumbprint(String x509Thumbprint)
           
 void setX509ThumbprintSHA256(String x509Thumbprint)
           
 void setX509Url(String x509Url)
           
 
Methods inherited from class org.apache.cxf.jaxrs.provider.json.JsonMapObject
asMap, equals, getBooleanProperty, getIntegerProperty, getLongProperty, getProperty, getStringProperty, getUpdateCount, hashCode, setProperty
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

JsonWebKey

public JsonWebKey()

JsonWebKey

public JsonWebKey(Map<String,Object> values)
Method Detail

setKeyType

public void setKeyType(String keyType)

getKeyType

public String getKeyType()

setPublicKeyUse

public void setPublicKeyUse(String use)

getPublicKeyUse

public String getPublicKeyUse()

setKeyOperation

public void setKeyOperation(List<String> keyOperation)

getKeyOperation

public List<String> getKeyOperation()

setAlgorithm

public void setAlgorithm(String algorithm)

getAlgorithm

public String getAlgorithm()

setKid

public void setKid(String kid)

getKid

public String getKid()

setX509Url

public void setX509Url(String x509Url)

getX509Url

public String getX509Url()

setX509Chain

public void setX509Chain(List<String> x509Chain)

getX509Chain

public List<String> getX509Chain()

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)

getKeyProperty

public Object getKeyProperty(String name)


Apache CXF