Package edu.uiuc.ncsa.security.util.jwk
Class JSONWebKey
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.jwk.JSONWebKey
-
- All Implemented Interfaces:
Serializable
public class JSONWebKey extends Object implements Serializable
An object containing a JSON web key. This contains and allows access to all the components of the key. Typically these are not modified once the key has been created since changing them is apt to result in a bad key.Created by Jeff Gaynor
on 1/6/17 at 2:46 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description String
algorithm
String
curve
This is used for elliptic curves and is the name of the curve used.Date
expiresAt
String
id
Date
issuedAt
com.nimbusds.jose.jwk.JWK
JOSEJWK
Date
notValidBefore
PrivateKey
privateKey
PublicKey
publicKey
String
type
String
use
-
Constructor Summary
Constructors Constructor Description JSONWebKey()
JSONWebKey(com.nimbusds.jose.jwk.JWK jwk)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JSONWebKey
clone()
com.nimbusds.jose.jwk.JWK
getJOSEJWK()
boolean
hasJOSEJWK()
boolean
isECKey()
boolean
isRSAKey()
Is this an RSA key?void
setJOSEJWK(com.nimbusds.jose.jwk.JWK JOSEJWK)
String
toString()
-
-
-
Field Detail
-
JOSEJWK
public com.nimbusds.jose.jwk.JWK JOSEJWK
-
curve
public String curve
This is used for elliptic curves and is the name of the curve used.
-
id
public String id
-
algorithm
public String algorithm
-
use
public String use
-
type
public String type
-
publicKey
public PublicKey publicKey
-
privateKey
public PrivateKey privateKey
-
issuedAt
public Date issuedAt
-
notValidBefore
public Date notValidBefore
-
expiresAt
public Date expiresAt
-
-
Method Detail
-
isRSAKey
public boolean isRSAKey()
Is this an RSA key?- Returns:
-
isECKey
public boolean isECKey()
-
getJOSEJWK
public com.nimbusds.jose.jwk.JWK getJOSEJWK()
-
setJOSEJWK
public void setJOSEJWK(com.nimbusds.jose.jwk.JWK JOSEJWK)
-
hasJOSEJWK
public boolean hasJOSEJWK()
-
clone
protected JSONWebKey clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-