- java.lang.Object
-
- swim.security.JsonWebKey
-
- All Implemented Interfaces:
swim.codec.Debug
public class JsonWebKey extends Object implements swim.codec.Debug
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.structure.Valuevalue
-
Constructor Summary
Constructors Constructor Description JsonWebKey(swim.structure.Value value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringalgorithm()<T> swim.codec.Output<T>debug(swim.codec.Output<T> output)ECKeyecKey()ECPrivateKeyecPrivateKey()ECPublicKeyecPublicKey()booleanequals(Object other)static JsonWebKeyfrom(swim.structure.Value value)swim.structure.Valueget(String name)inthashCode()Keykey()KeyDefkeyDef()StringkeyId()swim.collections.HashTrieSet<String>keyOperations()StringkeyType()static JsonWebKeyparse(String jwk)PrivateKeyprivateKey()PrivateKeyDefprivateKeyDef()PublicKeypublicKey()PublicKeyDefpublicKeyDef()StringpublicKeyUse()RSAKeyrsaKey()RSAPrivateKeyrsaPrivateKey()RSAPublicKeyrsaPublicKey()KeysymmetricKey()KeysymmetricKey(String algorithm)StringtoString()swim.structure.ValuetoValue()swim.collections.FingerTrieSeq<String>x509CertificateChain()Stringx509Sha1Thumbprint()Stringx509Sha256Thumbprint()Stringx509Url()
-
-
-
Method Detail
-
get
public swim.structure.Value get(String name)
-
keyType
public String keyType()
-
publicKeyUse
public String publicKeyUse()
-
keyOperations
public swim.collections.HashTrieSet<String> keyOperations()
-
algorithm
public String algorithm()
-
keyId
public String keyId()
-
x509Url
public String x509Url()
-
x509CertificateChain
public swim.collections.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()
-
toValue
public final swim.structure.Value toValue()
-
debug
public <T> swim.codec.Output<T> debug(swim.codec.Output<T> output)
- Specified by:
debugin interfaceswim.codec.Debug
-
from
public static JsonWebKey from(swim.structure.Value value)
-
parse
public static JsonWebKey parse(String jwk)
-
-