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 StringalgorithmStringcurveThis is used for elliptic curves and is the name of the curve used.DateexpiresAtStringidDateissuedAtcom.nimbusds.jose.jwk.JWKJOSEJWKDatenotValidBeforePrivateKeyprivateKeyPublicKeypublicKeyStringtypeStringuse
-
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 JSONWebKeyclone()com.nimbusds.jose.jwk.JWKgetJOSEJWK()booleanhasJOSEJWK()booleanisECKey()booleanisOctetKey()booleanisRSAKey()Is this an RSA key?voidsetJOSEJWK(com.nimbusds.jose.jwk.JWK JOSEJWK)StringtoString()
-
-
-
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()
-
isOctetKey
public boolean isOctetKey()
-
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:
clonein classObject- Throws:
CloneNotSupportedException
-
-