| 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.lang | |
| org.jose4j.mac | |
| org.jose4j.zip |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
JsonUtil.parseJson(String jsonString) |
static Map<String,Object> |
JsonHeaderUtil.parseJson(String jsonString)
Deprecated.
please use JsonUtil
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
ContentEncryptionAlgorithm.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[] |
AesCbcHmacSha2ContentEncryptionAlgorithm.decrypt(ContentEncryptionParts contentEncryptionParts,
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 |
AesGcmContentEncryptionAlgorithm.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) |
SimpleAeadCipher.CipherOutput |
SimpleAeadCipher.encrypt(Key key,
byte[] iv,
byte[] plaintext,
byte[] aad,
String provider) |
String |
JsonWebEncryption.getCompactSerialization() |
String |
JsonWebEncryption.getPayload() |
byte[] |
JsonWebEncryption.getPlaintextBytes() |
String |
JsonWebEncryption.getPlaintextString() |
Key |
WrappingKeyManagementAlgorithm.manageForDecrypt(Key managementKey,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
Pbes2HmacShaWithAesKeyWrapAlgorithm.manageForDecrypt(Key managementKey,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
KeyManagementAlgorithm.manageForDecrypt(Key managementKey,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
EcdhKeyAgreementWithAesKeyWrapAlgorithm.manageForDecrypt(Key managementKey,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
EcdhKeyAgreementAlgorithm.manageForDecrypt(Key managementKey,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
DirectKeyManagementAlgorithm.manageForDecrypt(Key managementKey,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
Key |
AesGcmKeyEncryptionAlgorithm.manageForDecrypt(Key managementKey,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
protected ContentEncryptionKeys |
WrappingKeyManagementAlgorithm.manageForEnc(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
byte[] contentEncryptionKey,
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) |
ContentEncryptionKeys |
KeyManagementAlgorithm.manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
ProviderContext providerContext) |
ContentEncryptionKeys |
EcdhKeyAgreementWithAesKeyWrapAlgorithm.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 |
DirectKeyManagementAlgorithm.manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
ProviderContext providerContext) |
ContentEncryptionKeys |
AesGcmKeyEncryptionAlgorithm.manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
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,
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) |
| Constructor and Description |
|---|
EllipticCurveJsonWebKey(Map<String,Object> params) |
EllipticCurveJsonWebKey(Map<String,Object> params,
String jcaProvider) |
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() |
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() |
protected void |
JsonWebSignature.setCompactSerializationParts(String[] parts) |
void |
JsonWebSignature.sign() |
byte[] |
PlaintextNoneAlgorithm.sign(Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
byte[] |
JsonWebSignatureAlgorithm.sign(Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
byte[] |
HmacUsingShaAlgorithm.sign(Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
byte[] |
EcdsaUsingShaAlgorithm.sign(Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
byte[] |
BaseSignatureAlgorithm.sign(Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
boolean |
JsonWebSignature.verifySignature() |
boolean |
PlaintextNoneAlgorithm.verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
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) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
JsonWebStructure.checkCrit() |
protected void |
JsonWebStructure.checkNotEmptyPart(String encodedPart,
String partName) |
static JsonWebStructure |
JsonWebStructure.fromCompactSerialization(String cs) |
abstract String |
JsonWebStructure.getCompactSerialization() |
JsonWebKey |
Headers.getJwkHeaderValue(String name) |
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 | Class and Description |
|---|---|
class |
IntegrityException |
class |
InvalidAlgorithmException |
class |
InvalidKeyException |
class |
UnresolvableKeyException |
| 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 © 2016. All rights reserved.