| Package | Description |
|---|---|
| org.jose4j.json | |
| org.jose4j.jwe | |
| org.jose4j.jwe.kdf | |
| org.jose4j.jwk | |
| org.jose4j.jws | |
| org.jose4j.jwx | |
| org.jose4j.keys | |
| org.jose4j.keys.resolvers | |
| org.jose4j.lang | |
| org.jose4j.mac | |
| org.jose4j.zip |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
JsonHeaderUtil.parseJson(String jsonString)
Deprecated.
please use JsonUtil
|
static Map<String,Object> |
JsonUtil.parseJson(String jsonString) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
SimpleAeadCipher.decrypt(byte[] ciphertext,
byte[] tag,
byte[] aad,
Cipher cipher) |
byte[] |
ContentEncryptionAlgorithm.decrypt(ContentEncryptionParts contentEncryptionParts,
byte[] aad,
byte[] contentEncryptionKey,
Headers headers,
ProviderContext providerContext) |
byte[] |
AesCbcHmacSha2ContentEncryptionAlgorithm.decrypt(ContentEncryptionParts contentEncryptionParts,
byte[] aad,
byte[] contentEncryptionKey,
Headers headers,
ProviderContext providerContext) |
byte[] |
AesGcmContentEncryptionAlgorithm.decrypt(ContentEncryptionParts contentEncParts,
byte[] aad,
byte[] contentEncryptionKey,
Headers headers,
ProviderContext providerContext) |
byte[] |
SimpleAeadCipher.decrypt(Key key,
byte[] iv,
byte[] ciphertext,
byte[] tag,
byte[] aad,
String provider) |
protected Key |
Pbes2HmacShaWithAesKeyWrapAlgorithm.deriveForEncrypt(Key managementKey,
Headers headers,
ProviderContext providerContext) |
ContentEncryptionParts |
AesGcmContentEncryptionAlgorithm.encrypt(byte[] plaintext,
byte[] aad,
byte[] contentEncryptionKey,
byte[] iv,
String provider) |
ContentEncryptionParts |
ContentEncryptionAlgorithm.encrypt(byte[] plaintext,
byte[] aad,
byte[] contentEncryptionKey,
Headers headers,
byte[] ivOverride,
ProviderContext providerContext) |
ContentEncryptionParts |
AesCbcHmacSha2ContentEncryptionAlgorithm.encrypt(byte[] plaintext,
byte[] aad,
byte[] contentEncryptionKey,
Headers headers,
byte[] ivOverride,
ProviderContext providerContext) |
ContentEncryptionParts |
AesGcmContentEncryptionAlgorithm.encrypt(byte[] plaintext,
byte[] aad,
byte[] contentEncryptionKey,
Headers headers,
byte[] ivOverride,
ProviderContext providerContext) |
SimpleAeadCipher.CipherOutput |
SimpleAeadCipher.encrypt(Key key,
byte[] iv,
byte[] plaintext,
byte[] aad,
String provider) |
String |
JsonWebEncryption.getCompactSerialization() |
Cipher |
SimpleAeadCipher.getInitialisedCipher(Key key,
byte[] iv,
int mode,
String provider) |
String |
JsonWebEncryption.getPayload() |
byte[] |
JsonWebEncryption.getPlaintextBytes() |
String |
JsonWebEncryption.getPlaintextString() |
Key |
EcdhKeyAgreementWithAesKeyWrapAlgorithm.manageForDecrypt(CryptoPrimitive cryptoPrimitive,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
AesGcmKeyEncryptionAlgorithm.manageForDecrypt(CryptoPrimitive cryptoPrimitive,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
DirectKeyManagementAlgorithm.manageForDecrypt(CryptoPrimitive cryptoPrimitive,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
EcdhKeyAgreementAlgorithm.manageForDecrypt(CryptoPrimitive cryptoPrimitive,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
KeyManagementAlgorithm.manageForDecrypt(CryptoPrimitive cryptoPrimitive,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
WrappingKeyManagementAlgorithm.manageForDecrypt(CryptoPrimitive cryptoPrimitive,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
Pbes2HmacShaWithAesKeyWrapAlgorithm.manageForDecrypt(CryptoPrimitive cryptoPrimitive,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
protected ContentEncryptionKeys |
WrappingKeyManagementAlgorithm.manageForEnc(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
byte[] contentEncryptionKey,
ProviderContext providerContext) |
ContentEncryptionKeys |
EcdhKeyAgreementWithAesKeyWrapAlgorithm.manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
ProviderContext providerContext) |
ContentEncryptionKeys |
AesGcmKeyEncryptionAlgorithm.manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
ProviderContext providerContext) |
ContentEncryptionKeys |
DirectKeyManagementAlgorithm.manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
ProviderContext providerContext) |
ContentEncryptionKeys |
EcdhKeyAgreementAlgorithm.manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
ProviderContext providerContext) |
ContentEncryptionKeys |
KeyManagementAlgorithm.manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
ProviderContext providerContext) |
ContentEncryptionKeys |
WrappingKeyManagementAlgorithm.manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
ProviderContext providerContext) |
ContentEncryptionKeys |
Pbes2HmacShaWithAesKeyWrapAlgorithm.manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
ProviderContext providerContext) |
CryptoPrimitive |
JsonWebEncryption.prepareDecryptingPrimitive()
Create, initialize and return the
CryptoPrimitive that
this JWE instance will use for agreement or decryption of the content encryption key. |
CryptoPrimitive |
EcdhKeyAgreementWithAesKeyWrapAlgorithm.prepareForDecrypt(Key managementKey,
Headers headers,
ProviderContext providerContext) |
CryptoPrimitive |
AesGcmKeyEncryptionAlgorithm.prepareForDecrypt(Key managementKey,
Headers headers,
ProviderContext providerContext) |
CryptoPrimitive |
EcdhKeyAgreementAlgorithm.prepareForDecrypt(Key managementKey,
Headers headers,
ProviderContext providerContext) |
CryptoPrimitive |
KeyManagementAlgorithm.prepareForDecrypt(Key managementKey,
Headers headers,
ProviderContext providerContext) |
CryptoPrimitive |
WrappingKeyManagementAlgorithm.prepareForDecrypt(Key managementKey,
Headers headers,
ProviderContext providerContext) |
CryptoPrimitive |
Pbes2HmacShaWithAesKeyWrapAlgorithm.prepareForDecrypt(Key managementKey,
Headers headers,
ProviderContext providerContext) |
protected void |
JsonWebEncryption.setCompactSerializationParts(String[] parts) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
PasswordBasedKeyDerivationFunction2.derive(byte[] password,
byte[] salt,
int iterationCount,
int dkLen) |
byte[] |
PasswordBasedKeyDerivationFunction2.derive(byte[] password,
byte[] salt,
int iterationCount,
int dkLen,
String provider) |
| Modifier and Type | Method and Description |
|---|---|
static EllipticCurveJsonWebKey |
EcJwkGenerator.generateJwk(ECParameterSpec spec) |
static EllipticCurveJsonWebKey |
EcJwkGenerator.generateJwk(ECParameterSpec spec,
String provider,
SecureRandom secureRandom) |
static RsaJsonWebKey |
RsaJwkGenerator.generateJwk(int bits) |
static RsaJsonWebKey |
RsaJwkGenerator.generateJwk(int bits,
String provider,
SecureRandom secureRandom) |
List<JsonWebKey> |
HttpsJwks.getJsonWebKeys()
Gets the JSON Web Keys from the JWKS endpoint location or from local cache, if appropriate.
|
protected static String |
JsonWebKey.getString(Map<String,Object> params,
String name) |
protected static String |
JsonWebKey.getString(Map<String,Object> params,
String name,
boolean required) |
protected static String |
JsonWebKey.getStringRequired(Map<String,Object> params,
String name) |
static JsonWebKey |
JsonWebKey.Factory.newJwk(Key key) |
static JsonWebKey |
JsonWebKey.Factory.newJwk(Map<String,Object> params) |
static JsonWebKey |
JsonWebKey.Factory.newJwk(String json) |
static PublicJsonWebKey |
PublicJsonWebKey.Factory.newPublicJwk(Key publicKey) |
static PublicJsonWebKey |
PublicJsonWebKey.Factory.newPublicJwk(Map<String,Object> params) |
static PublicJsonWebKey |
PublicJsonWebKey.Factory.newPublicJwk(Map<String,Object> params,
String jcaProvider) |
static PublicJsonWebKey |
PublicJsonWebKey.Factory.newPublicJwk(String json) |
static PublicJsonWebKey |
PublicJsonWebKey.Factory.newPublicJwk(String json,
String jcaProvider) |
void |
HttpsJwks.refresh()
Forces a refresh of the cached JWKs from the JWKS endpoint.
|
JsonWebKey |
DecryptionJwkSelector.select(JsonWebEncryption jwe,
Collection<JsonWebKey> keys) |
JsonWebKey |
VerificationJwkSelector.select(JsonWebSignature jws,
Collection<JsonWebKey> keys) |
List<JsonWebKey> |
DecryptionJwkSelector.selectList(JsonWebEncryption jwe,
Collection<JsonWebKey> keys) |
List<JsonWebKey> |
VerificationJwkSelector.selectList(JsonWebSignature jws,
Collection<JsonWebKey> keys) |
JsonWebKey |
VerificationJwkSelector.selectWithVerifySignatureDisambiguate(JsonWebSignature jws,
Collection<JsonWebKey> keys) |
| Constructor and Description |
|---|
EllipticCurveJsonWebKey(Map<String,Object> params) |
EllipticCurveJsonWebKey(Map<String,Object> params,
String jcaProvider) |
JsonWebKey(Map<String,Object> params) |
JsonWebKeySet(String json) |
OctetSequenceJsonWebKey(Map<String,Object> params) |
PublicJsonWebKey(Map<String,Object> params) |
PublicJsonWebKey(Map<String,Object> params,
String jcaProvider) |
RsaJsonWebKey(Map<String,Object> params) |
RsaJsonWebKey(Map<String,Object> params,
String jcaProvider) |
| Modifier and Type | Method and Description |
|---|---|
String |
JsonWebSignature.getCompactSerialization()
Sign and produce the JWS Compact Serialization.
|
String |
JsonWebSignature.getDetachedContentCompactSerialization()
Produces the compact serialization with an empty/detached payload as described in
Appendix F, Detached Content, of the JWS spec
though providing library support rather than making the application do it all as
described therein.
|
String |
JsonWebSignature.getPayload()
Gets the JWS payload as a string.
|
byte[] |
JsonWebSignature.getPayloadBytes()
Get the JWS payload.
|
CryptoPrimitive |
JsonWebSignatureAlgorithm.prepareForSign(Key key,
ProviderContext providerContext) |
CryptoPrimitive |
HmacUsingShaAlgorithm.prepareForSign(Key key,
ProviderContext providerContext) |
CryptoPrimitive |
BaseSignatureAlgorithm.prepareForSign(Key key,
ProviderContext providerContext) |
CryptoPrimitive |
UnsecuredNoneAlgorithm.prepareForSign(Key key,
ProviderContext providerContext) |
CryptoPrimitive |
JsonWebSignature.prepareSigningPrimitive()
Create, initialize (using the key and
ProviderContext) and return the CryptoPrimitive that
this JWS instance will use for signing. |
protected void |
JsonWebSignature.setCompactSerializationParts(String[] parts) |
void |
JsonWebSignature.sign()
Compute the JWS signature.
|
byte[] |
JsonWebSignatureAlgorithm.sign(CryptoPrimitive cryptoPrimitive,
byte[] securedInputBytes) |
byte[] |
HmacUsingShaAlgorithm.sign(CryptoPrimitive cryptoPrimitive,
byte[] securedInputBytes) |
byte[] |
EcdsaUsingShaAlgorithm.sign(CryptoPrimitive cryptoPrimitive,
byte[] securedInputBytes) |
byte[] |
BaseSignatureAlgorithm.sign(CryptoPrimitive cryptoPrimitive,
byte[] securedInputBytes) |
boolean |
JsonWebSignature.verifySignature()
Verify the signature of the JWS.
|
boolean |
JsonWebSignatureAlgorithm.verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
boolean |
HmacUsingShaAlgorithm.verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
boolean |
EcdsaUsingShaAlgorithm.verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
boolean |
BaseSignatureAlgorithm.verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
boolean |
UnsecuredNoneAlgorithm.verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
JsonWebStructure.checkCrit() |
protected void |
JsonWebStructure.checkNotEmptyPart(String encodedPart,
String partName) |
static JsonWebStructure |
JsonWebStructure.fromCompactSerialization(String cs) |
List<X509Certificate> |
JsonWebStructure.getCertificateChainHeaderValue() |
abstract String |
JsonWebStructure.getCompactSerialization() |
PublicJsonWebKey |
JsonWebStructure.getJwkHeader()
Gets the "jwk" (JSON Web Key) Header Parameter per
https://tools.ietf.org/html/rfc7515#section-4.1.3 and/or
https://tools.ietf.org/html/rfc7516#section-4.1.5
|
JsonWebKey |
Headers.getJwkHeaderValue(String name) |
X509Certificate |
JsonWebStructure.getLeafCertificateHeaderValue() |
abstract String |
JsonWebStructure.getPayload() |
PublicJsonWebKey |
Headers.getPublicJwkHeaderValue(String name,
String jcaProvider) |
static String |
CompactSerialization.serialize(String... parts)
Deprecated.
please use CompactSerializer
|
void |
JsonWebStructure.setCompactSerialization(String compactSerialization) |
protected abstract void |
JsonWebStructure.setCompactSerializationParts(String[] parts) |
protected void |
JsonWebStructure.setEncodedHeader(String encodedHeader) |
void |
Headers.setFullHeaderAsJsonString(String header) |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
X509Util.fromBase64Der(String b64EncodedDer) |
KeyPair |
EcKeyUtil.generateKeyPair(ECParameterSpec spec) |
KeyPair |
RsaKeyUtil.generateKeyPair(int bits) |
RSAPrivateKey |
RsaKeyUtil.getRsaPrivateKey(RSAPrivateKeySpec keySpec) |
static X509Util |
X509Util.getX509Util(String jcaProvider) |
RSAPrivateKey |
RsaKeyUtil.privateKey(BigInteger modulus,
BigInteger privateExponent) |
RSAPrivateKey |
RsaKeyUtil.privateKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient) |
ECPrivateKey |
EcKeyUtil.privateKey(BigInteger d,
ECParameterSpec spec) |
RSAPublicKey |
RsaKeyUtil.publicKey(BigInteger modulus,
BigInteger publicExponent) |
ECPublicKey |
EcKeyUtil.publicKey(BigInteger x,
BigInteger y,
ECParameterSpec spec) |
| Modifier and Type | Method and Description |
|---|---|
protected JsonWebKey |
HttpsJwksVerificationKeyResolver.select(JsonWebSignature jws,
List<JsonWebKey> jsonWebKeys) |
| Modifier and Type | Class and Description |
|---|---|
class |
IntegrityException |
class |
InvalidAlgorithmException |
class |
InvalidKeyException |
class |
UnresolvableKeyException |
| Modifier and Type | Method and Description |
|---|---|
static String |
JsonHelp.getStringChecked(Map<String,Object> map,
String name) |
| Modifier and Type | Method and Description |
|---|---|
static Mac |
MacUtil.getInitializedMac(String algorithm,
Key key) |
static Mac |
MacUtil.getInitializedMac(String algorithm,
Key key,
String provider) |
static Mac |
MacUtil.getMac(String algorithm) |
static Mac |
MacUtil.getMac(String algorithm,
String provider) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
DeflateRFC1951CompressionAlgorithm.decompress(byte[] compressedData) |
byte[] |
CompressionAlgorithm.decompress(byte[] compressedData) |
Copyright © 2022. All rights reserved.