Package swim.security

Class JsonWebKey

java.lang.Object
swim.security.JsonWebKey
All Implemented Interfaces:
Debug

public class JsonWebKey extends Object implements Debug
  • Field Details

    • value

      protected final Value value
  • Constructor Details

    • JsonWebKey

      public JsonWebKey(Value value)
  • Method Details

    • get

      public Value get(String name)
    • keyType

      public String keyType()
    • publicKeyUse

      public String publicKeyUse()
    • keyOperations

      public HashTrieSet<String> keyOperations()
    • algorithm

      public String algorithm()
    • keyId

      public String keyId()
    • x509Url

      public String x509Url()
    • x509CertificateChain

      public FingerTrieSeq<String> x509CertificateChain()
    • x509Sha1Thumbprint

      public String x509Sha1Thumbprint()
    • x509Sha256Thumbprint

      public String x509Sha256Thumbprint()
    • key

      public Key key()
    • keyDef

      public KeyDef keyDef()
    • publicKey

      public PublicKey publicKey()
    • publicKeyDef

      public PublicKeyDef publicKeyDef()
    • privateKey

      public PrivateKey privateKey()
    • privateKeyDef

      public PrivateKeyDef privateKeyDef()
    • ecKey

      public ECKey ecKey()
    • ecPublicKey

      public ECPublicKey ecPublicKey()
    • ecPrivateKey

      public ECPrivateKey ecPrivateKey()
    • rsaKey

      public RSAKey rsaKey()
    • rsaPublicKey

      public RSAPublicKey rsaPublicKey()
    • rsaPrivateKey

      public RSAPrivateKey rsaPrivateKey()
    • symmetricKey

      public Key symmetricKey(String algorithm)
    • symmetricKey

      public Key symmetricKey()
    • toValue

      public final Value toValue()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • debug

      public <T> Output<T> debug(Output<T> output)
      Description copied from interface: Debug
      Writes a developer readable, debug-formatted string representation of this object to output.
      Specified by:
      debug in interface Debug
      Returns:
      the continuation of the output.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • from

      public static JsonWebKey from(Value value)
    • parse

      public static JsonWebKey parse(String jwk)