Package | Description |
---|---|
com.nimbusds.jose |
Javascript Object Signing and Encryption (JOSE) classes.
|
com.nimbusds.jose.crypto |
Implementations of selected Javascript Object Signing and Encryption (JOSE)
algorithms.
|
com.nimbusds.jose.jwk |
JSON Web Key (JWK) classes.
|
com.nimbusds.jose.util |
Base64, Base64URL, compression and JSON utility classes.
|
com.nimbusds.jwt |
JSON Web Token (JWT) classes.
|
Modifier and Type | Method and Description |
---|---|
Base64URL |
ReadOnlyJWEHeader.getAgreementPartyUInfo()
Gets the agreement PartyUInfo (
apu ) parameter. |
Base64URL |
JWEHeader.getAgreementPartyUInfo() |
Base64URL |
ReadOnlyJWEHeader.getAgreementPartyVInfo()
Gets the agreement PartyVInfo (
apv ) parameter. |
Base64URL |
JWEHeader.getAgreementPartyVInfo() |
Base64URL |
JWECryptoParts.getAuthenticationTag()
Gets the authentication tag.
|
Base64URL |
JWEObject.getAuthenticationTag()
Gets the authentication tag of this JWE object.
|
Base64URL |
JWECryptoParts.getCipherText()
Gets the cipher text.
|
Base64URL |
JWEObject.getCipherText()
Gets the cipher text of this JWE object.
|
Base64URL |
JWECryptoParts.getEncryptedKey()
Gets the encrypted key.
|
Base64URL |
JWEObject.getEncryptedKey()
Gets the encrypted key of this JWE object.
|
Base64URL |
JWECryptoParts.getInitializationVector()
Gets the initialisation vector (IV).
|
Base64URL |
JWEObject.getInitializationVector()
Gets the initialisation vector (IV) of this JWE object.
|
Base64URL |
JWECryptoParts.getIntegrityValue()
Deprecated.
|
Base64URL |
JWEObject.getIntegrityValue()
Deprecated.
|
Base64URL[] |
JOSEObject.getParsedParts()
Gets the original parsed Base64URL parts used to create this JOSE
object.
|
Base64URL |
ReadOnlyJWEHeader.getPBES2Salt()
Gets the PBES2 salt (
p2s ) parameter. |
Base64URL |
JWEHeader.getPBES2Salt() |
Base64URL |
JWSObject.getSignature()
Gets the signature of this JWS object.
|
Base64URL |
JWSSigner.sign(ReadOnlyJWSHeader header,
byte[] signingInput)
Signs the specified
input of a
JWS object . |
static Base64URL[] |
JOSEObject.split(String s)
Splits a serialised JOSE object into its Base64URL-encoded parts.
|
Base64URL |
Payload.toBase64URL()
Returns a Base64URL view of this payload.
|
Base64URL |
ReadOnlyHeader.toBase64URL()
Returns a Base64URL representation of the header.
|
Base64URL |
Header.toBase64URL() |
Modifier and Type | Method and Description |
---|---|
byte[] |
JWEDecrypter.decrypt(ReadOnlyJWEHeader header,
Base64URL encryptedKey,
Base64URL iv,
Base64URL cipherText,
Base64URL authTag)
Decrypts the specified cipher text of a
JWE Object . |
static JWEHeader |
JWEHeader.parse(Base64URL base64URL)
Parses a JWE header from the specified Base64URL.
|
static PlainHeader |
PlainHeader.parse(Base64URL base64URL)
Parses a plain header from the specified Base64URL.
|
static Header |
Header.parse(Base64URL base64URL)
|
static JWSHeader |
JWSHeader.parse(Base64URL base64URL)
Parses a JWS header from the specified Base64URL.
|
void |
JWEHeader.setAgreementPartyUInfo(Base64URL apu)
Sets the agreement PartyUInfo (
apu ) parameter. |
void |
JWEHeader.setAgreementPartyVInfo(Base64URL apv)
Sets the agreement PartyVInfo (
apv ) parameter. |
protected void |
Header.setParsedBase64URL(Base64URL parsedBase64URL)
Sets the original parsed Base64URL used to create this header.
|
protected void |
JOSEObject.setParsedParts(Base64URL... parts)
Sets the original parsed Base64URL parts used to create this JOSE
object.
|
void |
JWEHeader.setPBES2Salt(Base64URL p2s)
Sets the PBES2 salt (
p2s ) parameter. |
boolean |
JWSVerifier.verify(ReadOnlyJWSHeader header,
byte[] signingInput,
Base64URL signature)
Verifies the specified
signature of a
JWS object . |
Constructor and Description |
---|
JWECryptoParts(Base64URL encryptedKey,
Base64URL iv,
Base64URL cipherText,
Base64URL authenticationTag)
Creates a new cryptograhic JWE parts instance.
|
JWEObject(Base64URL firstPart,
Base64URL secondPart,
Base64URL thirdPart,
Base64URL fourthPart,
Base64URL fifthPart)
Creates a new encrypted JSON Web Encryption (JWE) object with the
specified serialised parts.
|
JWSObject(Base64URL firstPart,
Base64URL secondPart,
Base64URL thirdPart)
Creates a new signed JSON Web Signature (JWS) object with the
specified serialised parts.
|
Payload(Base64URL base64URL)
Creates a new payload from the specified Base64URL-encoded object.
|
PlainObject(Base64URL firstPart,
Base64URL secondPart)
Creates a new plaintext JOSE object with the specified
Base64URL-encoded parts.
|
Modifier and Type | Method and Description |
---|---|
Base64URL |
RSASSASigner.sign(ReadOnlyJWSHeader header,
byte[] signingInput) |
Base64URL |
ECDSASigner.sign(ReadOnlyJWSHeader header,
byte[] signingInput) |
Base64URL |
MACSigner.sign(ReadOnlyJWSHeader header,
byte[] signingInput) |
Modifier and Type | Method and Description |
---|---|
byte[] |
DirectDecrypter.decrypt(ReadOnlyJWEHeader readOnlyJWEHeader,
Base64URL encryptedKey,
Base64URL iv,
Base64URL cipherText,
Base64URL authTag) |
byte[] |
RSADecrypter.decrypt(ReadOnlyJWEHeader readOnlyJWEHeader,
Base64URL encryptedKey,
Base64URL iv,
Base64URL cipherText,
Base64URL authTag) |
boolean |
MACVerifier.verify(ReadOnlyJWSHeader header,
byte[] signedContent,
Base64URL signature) |
boolean |
RSASSAVerifier.verify(ReadOnlyJWSHeader header,
byte[] signedContent,
Base64URL signature) |
boolean |
ECDSAVerifier.verify(ReadOnlyJWSHeader header,
byte[] signedContent,
Base64URL signature) |
Modifier and Type | Method and Description |
---|---|
Base64URL |
ECKey.getD()
Gets the private 'd' coordinate for the elliptic curve point.
|
Base64URL |
RSAKey.OtherPrimesInfo.getFactorCRTCoefficient()
The factor Chinese Remainder Theorem (CRT) coefficient
(
t ). |
Base64URL |
RSAKey.OtherPrimesInfo.getFactorCRTExponent()
Gets factor Chinese Remainder Theorem (CRT) exponent
(
d ). |
Base64URL |
RSAKey.getFirstCRTCoefficient()
Gets the first Chinese Remainder Theorem (CRT) coefficient
(
qi )} of the private RSA key. |
Base64URL |
RSAKey.getFirstFactorCRTExponent()
Gets the first factor Chinese Remainder Theorem (CRT) exponent
(
dp ) of the private RSA key. |
Base64URL |
RSAKey.getFirstPrimeFactor()
Gets the first prime factor (
p ) of the private RSA key. |
Base64URL |
OctetSequenceKey.getKeyValue()
Returns the value of this octet sequence key.
|
Base64URL |
RSAKey.getModulus()
Gets the modulus value (
n ) of the RSA key. |
Base64URL |
RSAKey.OtherPrimesInfo.getPrimeFactor()
Gets the prime factor (
r ). |
Base64URL |
RSAKey.getPrivateExponent()
Gets the private exponent (
d ) of the RSA key. |
Base64URL |
RSAKey.getPublicExponent()
Gets the public exponent (
e ) of the RSA key. |
Base64URL |
RSAKey.getSecondFactorCRTExponent()
Gets the second factor Chinese Remainder Theorem (CRT) exponent
(
dq ) of the private RSA key. |
Base64URL |
RSAKey.getSecondPrimeFactor()
Gets the second prime factor (
q ) of the private RSA key. |
Base64URL |
ECKey.getX()
Gets the public 'x' coordinate for the elliptic curve point.
|
Base64URL |
JWK.getX509CertThumbprint()
Gets the X.509 certificate thumbprint (
x5t ) of this JWK. |
Base64URL |
ECKey.getY()
Gets the public 'y' coordinate for the elliptic curve point.
|
Modifier and Type | Method and Description |
---|---|
ECKey.Builder |
ECKey.Builder.setD(Base64URL d)
Sets the private 'd' coordinate for the elliptic curve
point.
|
RSAKey.Builder |
RSAKey.Builder.setFirstCRTCoefficient(Base64URL qi)
Sets the first Chinese Remainder Theorem (CRT) coefficient
(
qi )} of the private RSA key. |
RSAKey.Builder |
RSAKey.Builder.setFirstFactorCRTExponent(Base64URL dp)
Sets the first factor Chinese Remainder Theorem (CRT)
exponent (
dp ) of the private RSA key. |
RSAKey.Builder |
RSAKey.Builder.setFirstPrimeFactor(Base64URL p)
Sets the first prime factor (
p ) of the private RSA
key. |
RSAKey.Builder |
RSAKey.Builder.setPrivateExponent(Base64URL d)
Sets the private exponent (
d ) of the RSA key. |
RSAKey.Builder |
RSAKey.Builder.setSecondFactorCRTExponent(Base64URL dq)
Sets the second factor Chinese Remainder Theorem (CRT)
exponent (
dq ) of the private RSA key. |
RSAKey.Builder |
RSAKey.Builder.setSecondPrimeFactor(Base64URL q)
Sets the second prime factor (
q ) of the private RSA
key. |
ECKey.Builder |
ECKey.Builder.setX509CertThumbprint(Base64URL x5t)
Sets the X.509 certificate thumbprint (
x5t ) of the
JWK. |
RSAKey.Builder |
RSAKey.Builder.setX509CertThumbprint(Base64URL x5t)
Sets the X.509 certificate thumbprint (
x5t ) of the
JWK. |
OctetSequenceKey.Builder |
OctetSequenceKey.Builder.setX509CertThumbprint(Base64URL x5t)
Sets the X.509 certificate thumbprint (
x5t ) of the
JWK. |
Constructor and Description |
---|
ECKey.Builder(ECKey.Curve crv,
Base64URL x,
Base64URL y)
Creates a new Elliptic Curve JWK builder.
|
ECKey(ECKey.Curve crv,
Base64URL x,
Base64URL y,
Base64URL d,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private Elliptic Curve JSON Web Key (JWK)
with the specified parameters.
|
ECKey(ECKey.Curve crv,
Base64URL x,
Base64URL y,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public Elliptic Curve JSON Web Key (JWK) with the
specified parameters.
|
ECKey(ECKey.Curve crv,
ECPublicKey pub,
ECPrivateKey priv,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private Elliptic Curve JSON Web Key (JWK)
with the specified parameters.
|
ECKey(ECKey.Curve crv,
ECPublicKey pub,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public Elliptic Curve JSON Web Key (JWK) with the
specified parameters.
|
JWK(KeyType kty,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new JSON Web Key (JWK).
|
OctetSequenceKey.Builder(Base64URL k)
Creates a new octet sequence JWK builder.
|
OctetSequenceKey(Base64URL k,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new octet sequence JSON Web Key (JWK) with the specified
parameters.
|
RSAKey.Builder(Base64URL n,
Base64URL e)
Creates a new RSA JWK builder.
|
RSAKey.OtherPrimesInfo(Base64URL r,
Base64URL d,
Base64URL t)
Creates a new JWK Other Primes Info with the specified
parameters.
|
RSAKey(Base64URL n,
Base64URL e,
Base64URL d,
Base64URL p,
Base64URL q,
Base64URL dp,
Base64URL dq,
Base64URL qi,
List<RSAKey.OtherPrimesInfo> oth,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(Base64URL n,
Base64URL e,
Base64URL p,
Base64URL q,
Base64URL dp,
Base64URL dq,
Base64URL qi,
List<RSAKey.OtherPrimesInfo> oth,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(Base64URL n,
Base64URL e,
Base64URL d,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(Base64URL n,
Base64URL e,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public RSA JSON Web Key (JWK) with the specified
parameters.
|
RSAKey(RSAPublicKey pub,
RSAMultiPrimePrivateCrtKey priv,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(RSAPublicKey pub,
RSAPrivateCrtKey priv,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(RSAPublicKey pub,
RSAPrivateKey priv,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(RSAPublicKey pub,
Use use,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public RSA JSON Web Key (JWK) with the specified
parameters.
|
Modifier and Type | Method and Description |
---|---|
static Base64URL |
Base64URL.encode(BigInteger bigInt)
Base64URL-encodes the specified big integer, without the sign bit.
|
static Base64URL |
Base64URL.encode(byte[] bytes)
Base64URL-encodes the specified byte array.
|
static Base64URL |
Base64URL.encode(String text)
Base64URL-encodes the specified string.
|
Modifier and Type | Method and Description |
---|---|
Base64URL[] |
JWT.getParsedParts()
Gets the original parsed Base64URL parts used to create the JSON Web
Token (JWT).
|
Constructor and Description |
---|
EncryptedJWT(Base64URL firstPart,
Base64URL secondPart,
Base64URL thirdPart,
Base64URL fourthPart,
Base64URL fifthPart)
Creates a new encrypted JSON Web Token (JWT) with the specified
serialised parts.
|
PlainJWT(Base64URL firstPart,
Base64URL secondPart)
Creates a new plain JSON Web Token (JWT) with the specified
Base64URL-encoded parts.
|
SignedJWT(Base64URL firstPart,
Base64URL secondPart,
Base64URL thirdPart)
Creates a new signed JSON Web Token (JWT) with the specified
serialised parts.
|
Copyright © 2013 NimbusDS. All Rights Reserved.