Uses of Interface
edu.iu.crypt.WebKey
Packages that use WebKey
Package
Description
Web cryptography public interfaces.
-
Uses of WebKey in edu.iu.auth.config
Methods in edu.iu.auth.config that return WebKey -
Uses of WebKey in edu.iu.crypt
Methods in edu.iu.crypt that return WebKeyModifier and TypeMethodDescriptionWebKey.Builder.build()
Builds the web key.static WebKey
WebKey.ephemeral
(WebEncryption.Encryption encryption) Creates an ephemeral content encryption key, for use withWebKey.Algorithm.DIRECT
.static WebKey
WebKey.ephemeral
(WebKey.Algorithm algorithm) Creates an ephemeral key for use as JWE recipient or JWS issuer.WebCryptoHeader.getKey()
Gets the well-known key data.static WebKey
Parses a JSON Web Key (JWK).static WebKey
Reads at least one PEM-encoded X509 certificate, and optionally a private key, and returns a JWK partial-key representation.static WebKey
WebCryptoHeader.verify
(WebCryptoHeader header) Verifies all parameters in aWebCryptoHeader
.WebKey.wellKnown()
Returns a copy of this key for whichgetPrivateKey()
andgetKey()
always return null, and for which the source data backing these methods is not populated.Methods in edu.iu.crypt that return types with arguments of type WebKeyModifier and TypeMethodDescriptionParses a JSON Web Key Set (JWKS).WebKey.readJwks
(InputStream jwks) Reads a JSON Web Key Set (JWKS).Reads a JSON Web Key Set (JWKS).Methods in edu.iu.crypt with parameters of type WebKeyModifier and TypeMethodDescriptiondefault byte[]
Decrypts the encrypted content.void
WebEncryption.decrypt
(WebKey key, OutputStream out) Decrypts the encrypted content.static WebToken
WebToken.decryptAndVerify
(String jwt, WebKey issuerKey, WebKey audienceKey) Decrypts and verifies a signed JSON Web Token (JWT).default String
WebEncryption.decryptText
(WebKey key) Decrypts UTF-8 encoded encrypted content.The key to use for encrypting or signing.WebToken.sign
(String type, WebKey.Algorithm algorithm, WebKey issuerKey) Encodes all claims as a signed JSON Web TokenWebToken.signAndEncrypt
(String type, WebKey.Algorithm signAlgorithm, WebKey issuerKey, WebKey.Algorithm encryptAlgorithm, WebEncryption.Encryption encryption, WebKey audienceKey) Encodes all claims as a signed and encrypted JSON Web Token.static PublicKey
Verifies encoded key data is correct for the key type, use, algorithm, and X.509 certificate chain.void
Verifies the signature as valid.default void
Verifies at least one signature using a public or shared key.static WebToken
Verifies a signed JSON Web Token (JWT).Sets the key to include with the header.Method parameters in edu.iu.crypt with type arguments of type WebKey -
Uses of WebKey in iu.auth.session
Methods in iu.auth.session with parameters of type WebKeyModifier and TypeMethodDescription(package private) String
Session.tokenize
(byte[] secretKey, WebKey issuerKey, WebKey.Algorithm algorithm) Token constructorConstructors in iu.auth.session with parameters of type WebKeyModifierConstructorDescription(package private)
Session token constructor.Constructor parameters in iu.auth.session with type arguments of type WebKeyModifierConstructorDescriptionSessionHandler
(URI resourceUri, IuSessionConfiguration configuration, Supplier<WebKey> issuerKey, WebKey.Algorithm algorithm) Constructor. -
Uses of WebKey in iu.crypt
Modifier and TypeFieldDescriptionstatic final IuJsonAdapter
<WebKey> CryptJsonAdapters.WEBKEY
JSON type adapter forWebKey
.Modifier and TypeMethodDescription(package private) byte[]
JweRecipient.agreedUponKey
(WebEncryption.Encryption encryption, WebKey recipientPrivateKey) Computes the agreed-upon key for the Elliptic Curve Diffie-Hellman algorithm.void
Jwe.decrypt
(WebKey key, OutputStream out) static JsonObject
Jwt.decryptAndVerify
(String jwt, WebKey issuerKey, WebKey audienceKey) Parses, decrypts, and verifies a JWT encoded withJWS compact serialization
.CryptSpi.decryptAndVerifyJwt
(String jwt, WebKey issuerKey, WebKey audienceKey) Jwt.sign
(String type, WebKey.Algorithm algorithm, WebKey issuerKey) Signs thisJwt
Jwt.signAndEncrypt
(String type, WebKey.Algorithm signAlgorithm, WebKey issuerKey, WebKey.Algorithm encryptAlgorithm, WebEncryption.Encryption encryption, WebKey audienceKey) Signs and encrypts thisJwt
void
static JsonObject
Parses and verifies a JWT encoded withJWS compact serialization
.Modifier and TypeMethodDescriptionstatic JsonObject
SerializesWebKey
s as a JSON Web Key Set.void
CryptSpi.writeJwks
(Iterable<? extends WebKey> webKeys, OutputStream out) static void
Jwk.writeJwks
(Iterable<? extends WebKey> webKeys, OutputStream out) WritesWebKey
as a JSON Web Key. -
Uses of WebKey in iu.crypt.spi
Methods in iu.crypt.spi that return WebKeyMethods in iu.crypt.spi that return types with arguments of type WebKeyModifier and TypeMethodDescriptionImplementsparseJwks(String)
IuCryptSpi.readJwks
(InputStream jwks) ImplementsreadJwks(InputStream)
ImplementsreadJwks(URI)
Methods in iu.crypt.spi with parameters of type WebKeyModifier and TypeMethodDescriptionIuCryptSpi.decryptAndVerifyJwt
(String jwt, WebKey issuerKey, WebKey audienceKey) ImplementsWebToken.verify(String, WebKey)
Method parameters in iu.crypt.spi with type arguments of type WebKeyModifier and TypeMethodDescriptionImplementsasJwks(Iterable)
void
IuCryptSpi.writeJwks
(Iterable<? extends WebKey> webKeys, OutputStream out) ImplementswriteJwks(Iterable, OutputStream)