Class 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 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.
      • algorithm

        public String algorithm
      • issuedAt

        public Date issuedAt
      • notValidBefore

        public Date notValidBefore
      • expiresAt

        public Date expiresAt
    • Constructor Detail

      • JSONWebKey

        public JSONWebKey()
      • JSONWebKey

        public JSONWebKey​(com.nimbusds.jose.jwk.JWK jwk)
    • 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()