public abstract class JsonWebKey extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonWebKey.Factory |
static class |
JsonWebKey.OutputControlLevel |
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_PARAMETER |
protected Key |
key |
static String |
KEY_ID_PARAMETER |
static String |
KEY_TYPE_PARAMETER |
static String |
USE_PARAMETER |
| Modifier | Constructor and Description |
|---|---|
protected |
JsonWebKey(Key key) |
protected |
JsonWebKey(Map<String,Object> params) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
fillTypeSpecificParams(Map<String,Object> params,
JsonWebKey.OutputControlLevel outputLevel) |
String |
getAlgorithm() |
Key |
getKey() |
String |
getKeyId() |
abstract String |
getKeyType() |
PublicKey |
getPublicKey()
Deprecated.
deprecated in favor
getKey() or PublicJsonWebKey.getPublicKey() |
protected static String |
getString(Map<String,Object> params,
String name) |
protected static String |
getString(Map<String,Object> params,
String name,
boolean required) |
protected static String |
getStringRequired(Map<String,Object> params,
String name) |
String |
getUse() |
protected void |
putIfNotNull(String name,
String value,
Map<String,Object> params) |
void |
setAlgorithm(String algorithm) |
void |
setKeyId(String keyId) |
void |
setUse(String use) |
String |
toJson() |
String |
toJson(JsonWebKey.OutputControlLevel outputLevel) |
Map<String,Object> |
toParams(JsonWebKey.OutputControlLevel outputLevel) |
String |
toString() |
public static final String KEY_TYPE_PARAMETER
public static final String USE_PARAMETER
public static final String KEY_ID_PARAMETER
public static final String ALGORITHM_PARAMETER
protected Key key
protected JsonWebKey(Key key)
public abstract String getKeyType()
protected abstract void fillTypeSpecificParams(Map<String,Object> params, JsonWebKey.OutputControlLevel outputLevel)
public PublicKey getPublicKey()
public Key getKey()
public String getUse()
public void setUse(String use)
public String getKeyId()
public void setKeyId(String keyId)
public String getAlgorithm()
public void setAlgorithm(String algorithm)
public Map<String,Object> toParams(JsonWebKey.OutputControlLevel outputLevel)
public String toJson()
public String toJson(JsonWebKey.OutputControlLevel outputLevel)
protected static String getStringRequired(Map<String,Object> params, String name) throws JoseException
JoseExceptionprotected static String getString(Map<String,Object> params, String name, boolean required) throws JoseException
JoseExceptionCopyright © 2015. All rights reserved.