Index
All Classes and Interfaces|All Packages
A
- actualBytes() - Method in class de.christofreichardt.asn1.ASN1
-
Returns a copy of the bytes representing the actual ASN.1 object without identifier and length octets.
- algorithm() - Method in class de.christofreichardt.json.websignature.HmacSHA256
- algorithm() - Method in interface de.christofreichardt.json.websignature.JWSAlgorithm
-
Returns the name of the underlying algorithm object.
- algorithm() - Method in class de.christofreichardt.json.websignature.SHA256withECDSA
- algorithm() - Method in class de.christofreichardt.json.websignature.SHA256withRSA
- algorithm() - Method in class de.christofreichardt.json.websignature.SHA512WithECDSA
- AlgorithmBuilder(String) - Constructor for class de.christofreichardt.json.websignature.JOSEHeader.AlgorithmBuilder
-
Creates the builder preconfigured with given "alg" parameter.
- alignBytes(byte[], int) - Static method in class de.christofreichardt.json.webkey.JsonWebKeyUtils
-
Takes the given raw bytes and tries to return an equivalent byte array with the favored length by skipping surplus zeroes or filling in missing zeroes.
- ASN1 - Class in de.christofreichardt.asn1
-
Abstract base class for the ASN.1 helper classes.
- ASN1Integer - Class in de.christofreichardt.asn1
-
ASN.1 helper class representing an arbitrary INTEGER
- ASN1Integer(byte[]) - Constructor for class de.christofreichardt.asn1.ASN1Integer
-
Creates an ASN.1 INTEGER.
- ASN1Integer(byte[], int) - Constructor for class de.christofreichardt.asn1.ASN1Integer
-
Creates an ASN.1 INTEGER.
- ASN1IntSequence - Class in de.christofreichardt.asn1
-
ASN.1 helper class representing a ASN.1
SEQUENCEofINTEGERs. - ASN1IntSequence(byte[]) - Constructor for class de.christofreichardt.asn1.ASN1IntSequence
-
Creates an ASN.1
SEQUENCEofINTEGERs - ASN1IntSequence.Iterator - Class in de.christofreichardt.asn1
-
Iteratorover ASN.1INTEGERs.
B
- BeforeHeader - Interface in de.christofreichardt.json.websignature.interfaces
-
The first stopover within the workflow of the Fluent API regarding the generation of signatures.
- BeforeKey - Interface in de.christofreichardt.json.websignature.interfaces
-
The first stopover within the workflow of the Fluent API regarding the validation of signatures.
- BeforeKid - Interface in de.christofreichardt.json.websignature.interfaces
-
A stopover within the the workflow of the Fluent API regarding the generation of signatures.
- BeforePayload - Interface in de.christofreichardt.json.websignature.interfaces
-
A stopover within the the workflow of the Fluent API regarding the generation of signatures.
- build() - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair.Builder
-
Builds the
JsonWebKeyPairinstance with the configured parameters. - build() - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair.KeyPairBuilder
-
Builds the
JsonWebKeyPairwith the configured parameters. - build() - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair.ParameterSpecBuilder
-
Builds the
JsonWebKeyPairwith the configured parameters. - build() - Method in class de.christofreichardt.json.webkey.JsonWebPublicKey.Builder
-
Builds the
JsonWebPublicKeywith the configured parameters. - build() - Method in class de.christofreichardt.json.webkey.JsonWebSecretKey.Builder
-
Builds the
JsonWebSecretKeywith the configured parameters. - build() - Method in class de.christofreichardt.json.webkey.JsonWebSecretKey.SecretKeyBuilder
-
Builds the
JsonWebSecretKeywith the configuredSecretKey. - build() - Method in class de.christofreichardt.json.websignature.JOSEHeader.AlgorithmBuilder
-
Builds the
JOSEHeaderinstance with the configured parameters. - build() - Method in class de.christofreichardt.json.websignature.JOSEHeader.PublicKeyBuilder
-
Builds the
JOSEHeaderinstance with the configured parameters. - Builder() - Constructor for class de.christofreichardt.json.webkey.JsonWebKey.Builder
- Builder() - Constructor for class de.christofreichardt.json.webkey.JsonWebKeyPair.Builder
- Builder() - Constructor for class de.christofreichardt.json.webkey.JsonWebSecretKey.Builder
- Builder(PublicKey) - Constructor for class de.christofreichardt.json.webkey.JsonWebPublicKey.Builder
-
Creates the
JsonWebPublicKey.Builderpreconfigured with the givenPublicKey.
C
- compactSerialization(JWSCompactSerialization) - Method in interface de.christofreichardt.json.websignature.interfaces.ValidationBegin
-
Notes the given
JWSCompactSerialization. - compactSerialization(JWSCompactSerialization) - Method in class de.christofreichardt.json.websignature.JWS.Validator
- convert(JsonStructure) - Method in interface de.christofreichardt.json.websignature.Json2StringConverter
-
Converts predictably the given
JsonStructureinto a string. - convert(JsonStructure) - Method in class de.christofreichardt.json.websignature.PrettyStringConverter
- createSignature() - Static method in class de.christofreichardt.json.websignature.JWS
-
Entry point for creating signatures.
- createValidator() - Static method in class de.christofreichardt.json.websignature.JWS
-
Entry point for validating signatures.
D
- de.christofreichardt.asn1 - package de.christofreichardt.asn1
-
Some ASN.1 helper classes.
- de.christofreichardt.json - package de.christofreichardt.json
-
Some JSON utility classes.
- de.christofreichardt.json.webkey - package de.christofreichardt.json.webkey
-
Provides the JSON Web Key (JWK) classes for convenience.
- de.christofreichardt.json.websignature - package de.christofreichardt.json.websignature
-
Provides the classes and interfaces for the JSON Web Signature (JWS) part of the framework.
- de.christofreichardt.json.websignature.interfaces - package de.christofreichardt.json.websignature.interfaces
-
Provides interfaces concerning the Fluent API.
- decodeToBytes(String) - Static method in class de.christofreichardt.json.websignature.JWSBase
-
Decodes a Base64-URL-encoded string into bytes.
E
- EC_PARAMETER_SPEC_MAP - Static variable in class de.christofreichardt.json.webkey.JsonWebKey
-
Maps curve names on appropriate
ECParameterSpecs. - encode(byte[]) - Static method in class de.christofreichardt.asn1.ASN1Integer
-
Creates an ASN.1 INTEGER by augmenting the given content octets with identifier and length octets.
- encode(byte[]) - Static method in class de.christofreichardt.json.websignature.JWSBase
-
Encodes the given
inputusing the base64-url-encoding scheme. - encode(String) - Static method in class de.christofreichardt.json.websignature.JWSBase
-
Encodes the given
inputby first taking its UTF-8 encoded bytes and next using the base64-url-encoding scheme. - encoded() - Method in class de.christofreichardt.asn1.ASN1
-
Returns a copy of the bytes representing the encoded ASN.1 object.
- encodedHeader() - Method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Returns the value of the
encodedHeaderrecord component. - encodedPayload() - Method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Returns the value of the
encodedPayloadrecord component. - encodedSignature() - Method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Returns the value of the
encodedSignaturerecord component. - equals(Object) - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
Compares this
JsonWebKeyPairwith anotherJsonWebKeyPair. - equals(Object) - Method in class de.christofreichardt.json.webkey.JsonWebPublicKey
-
Compares this
JsonWebPublicKeywith anotherJsonWebPublicKey. - equals(Object) - Method in class de.christofreichardt.json.webkey.JsonWebSecretKey
-
Compares this
JsonWebSecretKeywith anotherJsonWebSecretKey. - equals(Object) - Method in class de.christofreichardt.json.websignature.JOSEHeader
-
Checks if this JOSE header is equal to another header.
- equals(Object) - Method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Indicates whether some other object is "equal to" this one.
F
- fillMissingZeroes(byte[], int) - Static method in class de.christofreichardt.json.webkey.JsonWebKeyUtils
-
Fills in missing zeroes at the begin of a byte array if required.
- formatBytes(byte[]) - Static method in class de.christofreichardt.json.webkey.JsonWebKeyUtils
-
Interpretes the given bytes as unsigned integers and concatenates them into a comma separated string.
- fromASN1Integers(ASN1Integer...) - Static method in class de.christofreichardt.asn1.ASN1IntSequence
-
Creates an ASN.1
SEQUENCEof the givenASN1Integers. - fromJson(JsonObject) - Static method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
Factory method to create a
JsonWebKeyPairinstance from a plainJsonObject. - fromJson(JsonObject) - Static method in class de.christofreichardt.json.webkey.JsonWebPublicKey
-
Factory method to create a
JsonWebPublicKeyinstance from a plainJsonObject. - fromJson(JsonObject) - Static method in class de.christofreichardt.json.webkey.JsonWebSecretKey
-
Factory method to create a
JsonWebSecretKeyinstance from a plainJsonObject. - fromJson(JsonObject) - Static method in class de.christofreichardt.json.websignature.JOSEHeader
-
Factory method to create a
JOSEHeaderinstance from a plainJsonObject. - fromJson(JsonObject, Class) - Static method in class de.christofreichardt.json.webkey.JsonWebKey
-
Generic method to create a
JsonWebKeyfrom a JSON representation.
G
- getAlg() - Method in class de.christofreichardt.json.websignature.JOSEHeader
-
Returns the configured "alg" (Algorithm).
- getAlgorithm() - Method in class de.christofreichardt.json.webkey.JsonWebSecretKey
-
Return the algorithm to be used with the wrapped
SecretKey, e.g. - getAlgorithmParameterSpec() - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
Returns the applied
AlgorithmParameterSpec, may be null. - getAlgorithmParameterSpec() - Method in class de.christofreichardt.json.webkey.JsonWebPublicKey
-
Returns the applied
AlgorithmParameterSpec, may be null. - getCurrentTracer() - Method in class de.christofreichardt.asn1.ASN1
- getCurrentTracer() - Method in class de.christofreichardt.asn1.ASN1IntSequence.Iterator
- getCurrentTracer() - Method in class de.christofreichardt.json.webkey.JsonWebKey
- getCurrentTracer() - Method in class de.christofreichardt.json.websignature.HmacSHA256
- getCurrentTracer() - Method in class de.christofreichardt.json.websignature.JOSEHeader
- getCurrentTracer() - Method in class de.christofreichardt.json.websignature.JOSEHeader.PublicKeyBuilder
- getCurrentTracer() - Method in class de.christofreichardt.json.websignature.JWS.Signature
- getCurrentTracer() - Method in class de.christofreichardt.json.websignature.JWSSigner
- getCurrentTracer() - Method in class de.christofreichardt.json.websignature.JWSValidator
- getCurrentTracer() - Method in class de.christofreichardt.json.websignature.SHA256withECDSA
- getCurrentTracer() - Method in class de.christofreichardt.json.websignature.SHA256withRSA
- getCurrentTracer() - Method in class de.christofreichardt.json.websignature.SHA512WithECDSA
- getJoseHeader() - Method in class de.christofreichardt.json.websignature.JWSBase
-
Returns the JOSE Header as
JsonObject. - getJsonWebPublicKey() - Method in class de.christofreichardt.json.websignature.JOSEHeader
-
Returns the configured "jwk" (JSON Web Key)
- getKeyPair() - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
Returns the actual
KeyPair. - getKeyType() - Method in class de.christofreichardt.json.webkey.JsonWebKey
-
Returns the required "kty" (Key Type) parameter.
- getKid() - Method in class de.christofreichardt.json.webkey.JsonWebKey
-
Returns the "kid" (Key ID) parameter.
- getKid() - Method in class de.christofreichardt.json.websignature.JOSEHeader
-
Returns the configured "kid" (Key ID)
- getPayload() - Method in class de.christofreichardt.json.websignature.JWSBase
-
Returns the payload as
JsonObject. - getPublicKey() - Method in class de.christofreichardt.json.webkey.JsonWebPublicKey
-
Returns the contained public key.
- getSecretKey() - Method in class de.christofreichardt.json.webkey.JsonWebSecretKey
-
Returns the wrapped
SecretKey. - getStrJoseHeader() - Method in class de.christofreichardt.json.websignature.JWSBase
-
Returns the string representation of the JOSE header.
- getStrPayload() - Method in class de.christofreichardt.json.websignature.JWSBase
-
Returns the string representation of the actual payload.
- getTyp() - Method in class de.christofreichardt.json.websignature.JOSEHeader
-
Returns the configured "typ" (Type).
H
- hashCode() - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
A hash code for this
JsonWebKeyPair. - hashCode() - Method in class de.christofreichardt.json.webkey.JsonWebPublicKey
-
A hash code for this
JsonWebPublicKey. - hashCode() - Method in class de.christofreichardt.json.webkey.JsonWebSecretKey
-
A hash code for this
JsonWebSecretKey. - hashCode() - Method in class de.christofreichardt.json.websignature.JOSEHeader
-
A hash code for this header.
- hashCode() - Method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Returns a hash code value for this object.
- hasNext() - Method in class de.christofreichardt.asn1.ASN1IntSequence.Iterator
- header(String) - Method in interface de.christofreichardt.json.websignature.interfaces.BeforeHeader
-
Notes the given explicit JOSE header.
- header(String) - Method in class de.christofreichardt.json.websignature.JWS.Signature
- HmacSHA256 - Class in de.christofreichardt.json.websignature
-
An apapter to the underlying MAC instance provided by the Java platform which has the same name.
I
- init(Key) - Method in class de.christofreichardt.json.websignature.HmacSHA256
- init(Key) - Method in interface de.christofreichardt.json.websignature.JWSAlgorithm
-
Initialises the underlying algorithm provided by the Java platform with the given key.
- init(Key) - Method in class de.christofreichardt.json.websignature.SHA256withECDSA
- init(Key) - Method in class de.christofreichardt.json.websignature.SHA256withRSA
- init(Key) - Method in class de.christofreichardt.json.websignature.SHA512WithECDSA
- isShortForm() - Method in class de.christofreichardt.asn1.ASN1
-
Indicates if the underlying ASN.1 object is in short form (<= 127 octets).
- iterator() - Method in class de.christofreichardt.asn1.ASN1IntSequence
-
Returns an
ASN1IntSequence.Iterator. - Iterator() - Constructor for class de.christofreichardt.asn1.ASN1IntSequence.Iterator
-
Creates an
Iteratorover ASN.1INTEGERs.
J
- joseHeader() - Method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Decodes the BASE64 URL encoded JOSE header and constructs an appropriate
JsonObject. - JOSEHeader - Class in de.christofreichardt.json.websignature
-
A convenient class useful to define a JOSE Header containing the parameters describing the cryptographic operations and parameters employed.
- JOSEHeader.AlgorithmBuilder - Class in de.christofreichardt.json.websignature
-
A builder for a
JOSEHeaderpreconfigured with the "alg" parameter. - JOSEHeader.PublicKeyBuilder - Class in de.christofreichardt.json.websignature
-
A builder for a
JOSEHeaderpreconfigured with a JSON web (public) key. - Json2StringConverter - Interface in de.christofreichardt.json.websignature
-
Implementations of this interface are required when formatting JSON structures in a predictable way prior to applying digital signatures.
- JsonUtils - Class in de.christofreichardt.json
-
Provides some utility functions.
- JsonWebKey - Class in de.christofreichardt.json.webkey
-
Base class for JSON web keys.
- JsonWebKey.Builder<T> - Class in de.christofreichardt.json.webkey
-
Base class for all
JsonWebKey.Builders. - JsonWebKeyPair - Class in de.christofreichardt.json.webkey
-
Convenient for the handling of key pairs in the spirit of RFC 7517 (JSON Web Key) and RFC 7518 (JSON Web Algorithms).
- JsonWebKeyPair.Builder - Class in de.christofreichardt.json.webkey
-
A
JsonWebKey.Builderfor buildingJsonWebKeyPairs by internally generating an EC key pair for the curve "secp256r1". - JsonWebKeyPair.KeyPairBuilder - Class in de.christofreichardt.json.webkey
- JsonWebKeyPair.ParameterSpecBuilder - Class in de.christofreichardt.json.webkey
- JsonWebKeyUtils - Class in de.christofreichardt.json.webkey
-
Some low level utility procedures for handling raw bytes.
- jsonWebPublicKey() - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
Creates a
JsonWebPublicKeyfrom thisJsonWebKeyPair. - JsonWebPublicKey - Class in de.christofreichardt.json.webkey
-
Convenient for the handling of public keys in the spirit of RFC 7517 (JSON Web Key) and RFC 7518 (JSON Web Algorithms).
- JsonWebPublicKey.Builder - Class in de.christofreichardt.json.webkey
- JsonWebSecretKey - Class in de.christofreichardt.json.webkey
-
Convenient for the handling of secret keys in the spirit of RFC 7517 (JSON Web Key) and RFC 7518 (JSON Web Algorithms).
- JsonWebSecretKey.Builder - Class in de.christofreichardt.json.webkey
-
A
JsonWebKey.Builderfor buildingJsonWebSecretKeys by specifying an algorithm and a keysize. - JsonWebSecretKey.SecretKeyBuilder - Class in de.christofreichardt.json.webkey
- JWS - Class in de.christofreichardt.json.websignature
-
This class provides a Fluent API for generating and validating JSON Web Signatures.
- JWS.Signature - Class in de.christofreichardt.json.websignature
-
Implements all interfaces of the Fluent API related to creating signatures.
- JWS.Validator - Class in de.christofreichardt.json.websignature
-
Implements all interfaces of the Fluent API related to validating signatures.
- JWSAlgorithm - Interface in de.christofreichardt.json.websignature
-
All algorithm classes used for signing or validating must implement this interface.
- JWSBase - Class in de.christofreichardt.json.websignature
-
This class provides some core functionality related to creating and validating signatures.
- JWSCompactSerialization - Record Class in de.christofreichardt.json.websignature
-
A holder for the strings representing the compact serialization format as specified by RFC 7515 (JSON Web Signature).
- JWSCompactSerialization(String, String, String) - Constructor for record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Creates an instance of a
JWSCompactSerializationrecord class. - JWSSigner - Class in de.christofreichardt.json.websignature
-
Low level class for the creating JSON web signatures.
- JWSSigner(JsonObject, JsonStructure) - Constructor for class de.christofreichardt.json.websignature.JWSSigner
-
Creates a
JWSSignerwith the specified JOSE header and JSON payload. - JWSSigner(JsonObject, JsonStructure, Json2StringConverter) - Constructor for class de.christofreichardt.json.websignature.JWSSigner
-
Creates a
JWSSignerwith the specified JOSE header and JSON payload. - JWSSigner(String, String) - Constructor for class de.christofreichardt.json.websignature.JWSSigner
-
Creates a
JWSSignerwith the specified literal JOSE header and literal JSON payload as signing input (no conversion). - JWSValidator - Class in de.christofreichardt.json.websignature
-
Low level class for the validating JSON web signatures.
- JWSValidator(JWSCompactSerialization) - Constructor for class de.christofreichardt.json.websignature.JWSValidator
-
Creates a
JWSValidatorby taking a JWS compact serialization as input.
K
- key(KeyPair) - Method in interface de.christofreichardt.json.websignature.interfaces.SignatureBegin
-
The given
KeyPairwill be used to build aJsonWebKeyPair. - key(KeyPair) - Method in class de.christofreichardt.json.websignature.JWS.Signature
- key(PublicKey) - Method in interface de.christofreichardt.json.websignature.interfaces.BeforeKey
-
Notes the given
PublicKey. - key(PublicKey) - Method in class de.christofreichardt.json.websignature.JWS.Validator
- key(SecretKey) - Method in interface de.christofreichardt.json.websignature.interfaces.BeforeKey
-
Notes the given
SecretKey. - key(SecretKey) - Method in interface de.christofreichardt.json.websignature.interfaces.SignatureBegin
-
The given
SecretKeywill be used to build aJsonWebSecretKey. - key(SecretKey) - Method in class de.christofreichardt.json.websignature.JWS.Signature
- key(SecretKey) - Method in class de.christofreichardt.json.websignature.JWS.Validator
- KeyPairBuilder(KeyPair) - Constructor for class de.christofreichardt.json.webkey.JsonWebKeyPair.KeyPairBuilder
-
Creates the
JsonWebKeyPair.KeyPairBuilderpreconfigured with the givenKeyPair. - kid(String) - Method in interface de.christofreichardt.json.websignature.interfaces.BeforeKid
-
Notes the given
kid. - kid(String) - Method in class de.christofreichardt.json.websignature.JWS.Signature
N
- NamedECParameterSpec - Class in de.christofreichardt.json.webkey
-
Helper class needed to propagate the identifiers of this curve through serialization and deserialization.
- NamedECParameterSpec(String, EllipticCurve, ECPoint, BigInteger, int) - Constructor for class de.christofreichardt.json.webkey.NamedECParameterSpec
-
Creates elliptic curve domain parameters based on the specified values.
- next() - Method in class de.christofreichardt.asn1.ASN1IntSequence.Iterator
O
- of() - Static method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
Creates the default builder for a
JsonWebKeyPair. - of() - Static method in class de.christofreichardt.json.webkey.JsonWebSecretKey
-
Creates the default builder for a
JsonWebSecretKey. - of(JsonWebPublicKey) - Static method in class de.christofreichardt.json.websignature.JOSEHeader
-
Creates a special builder for a
JOSEHeader. - of(String) - Static method in class de.christofreichardt.json.websignature.JOSEHeader
-
Creates a special builder for a
JOSEHeader. - of(String) - Static method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Factory method which expects an actual compact serialization format.
- of(KeyPair) - Static method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
Creates a special builder for a
JsonWebKeyPair. - of(PublicKey) - Static method in class de.christofreichardt.json.webkey.JsonWebPublicKey
-
Creates the builder for a
JsonWebPublicKey. - of(AlgorithmParameterSpec) - Static method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
Creates a special builder for a
JsonWebKeyPair. - of(SecretKey) - Static method in class de.christofreichardt.json.webkey.JsonWebSecretKey
-
Creates a special builder for a
JsonWebSecretKey. - orElseThrow(JsonObject, String, Class) - Static method in class de.christofreichardt.json.JsonUtils
-
Used to access a typed name/value pair of the given
JsonObject.
P
- ParameterSpecBuilder(AlgorithmParameterSpec) - Constructor for class de.christofreichardt.json.webkey.JsonWebKeyPair.ParameterSpecBuilder
-
Creates the
JsonWebKeyPair.ParameterSpecBuilderpreconfigured with the givenAlgorithmParameterSpec. - payload() - Method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Decodes the BASE64 URL encoded payload and constructs an appropriate
JsonObject. - payload(JsonStructure) - Method in interface de.christofreichardt.json.websignature.interfaces.BeforePayload
-
Introduces the actual payload.
- payload(JsonStructure) - Method in class de.christofreichardt.json.websignature.JWS.Signature
- payload(String) - Method in interface de.christofreichardt.json.websignature.interfaces.BeforePayload
-
Introduces the actual payload as string.
- payload(String) - Method in class de.christofreichardt.json.websignature.JWS.Signature
- postSigning(byte[]) - Method in class de.christofreichardt.json.websignature.HmacSHA256
- postSigning(byte[]) - Method in interface de.christofreichardt.json.websignature.JWSAlgorithm
-
Optional post-processing of the signature bytes, for example the signature bytes might be DER encoded and RFC 7515 or rather RFC 7518 require a different format.
- postSigning(byte[]) - Method in class de.christofreichardt.json.websignature.SHA256withECDSA
- postSigning(byte[]) - Method in class de.christofreichardt.json.websignature.SHA256withRSA
- postSigning(byte[]) - Method in class de.christofreichardt.json.websignature.SHA512WithECDSA
- PrettyStringConverter - Class in de.christofreichardt.json.websignature
-
A formatter of
JsonStructures. - PrettyStringConverter() - Constructor for class de.christofreichardt.json.websignature.PrettyStringConverter
- preValidating(byte[]) - Method in class de.christofreichardt.json.websignature.HmacSHA256
- preValidating(byte[]) - Method in interface de.christofreichardt.json.websignature.JWSAlgorithm
-
Optional pre-processing of the to be validated signature bytes, for example the verifying algorithm instance given by the Java runtime might require DER encoded signature bytes.
- preValidating(byte[]) - Method in class de.christofreichardt.json.websignature.SHA256withECDSA
- preValidating(byte[]) - Method in class de.christofreichardt.json.websignature.SHA256withRSA
- preValidating(byte[]) - Method in class de.christofreichardt.json.websignature.SHA512WithECDSA
- PublicKeyBuilder(JsonWebPublicKey) - Constructor for class de.christofreichardt.json.websignature.JOSEHeader.PublicKeyBuilder
-
Creates the builder preconfigured with the given
JsonWebPublicKey.
S
- SECP256R1 - Static variable in class de.christofreichardt.json.webkey.JsonWebKey
-
Public parameters of curve 'secp256r1'.
- SECP521R1 - Static variable in class de.christofreichardt.json.webkey.JsonWebKey
-
Public parameters of curve 'secp521r1'.
- SecretKeyBuilder(SecretKey) - Constructor for class de.christofreichardt.json.webkey.JsonWebSecretKey.SecretKeyBuilder
-
Creates the
JsonWebSecretKey.SecretKeyBuilderpreconfigured with the givenSecretKey. - SHA256withECDSA - Class in de.christofreichardt.json.websignature
-
An apapter to the underlying Signature instance provided by the Java platform which has the same name.
- SHA256withRSA - Class in de.christofreichardt.json.websignature
-
An apapter to the underlying Signature instance provided by the Java platform which has the same name.
- SHA512WithECDSA - Class in de.christofreichardt.json.websignature
-
An apapter to the underlying Signature instance provided by the Java platform which has the same name.
- sign() - Method in interface de.christofreichardt.json.websignature.interfaces.SignatureEnd
-
Uses the gathered information to create a JSON Web Signature.
- sign() - Method in class de.christofreichardt.json.websignature.JWS.Signature
- sign(Json2StringConverter) - Method in interface de.christofreichardt.json.websignature.interfaces.SignatureEnd
-
Uses the gathered information to create a JSON Web Signature.
- sign(Json2StringConverter) - Method in class de.christofreichardt.json.websignature.JWS.Signature
- sign(Key) - Method in class de.christofreichardt.json.websignature.JWSSigner
-
Generates the JSON web signature as compact serialization.
- signature() - Method in class de.christofreichardt.json.websignature.HmacSHA256
- signature() - Method in interface de.christofreichardt.json.websignature.JWSAlgorithm
-
Requests a signature from the underlying algorithm for the delivered bytes.
- signature() - Method in class de.christofreichardt.json.websignature.SHA256withECDSA
- signature() - Method in class de.christofreichardt.json.websignature.SHA256withRSA
- signature() - Method in class de.christofreichardt.json.websignature.SHA512WithECDSA
- Signature() - Constructor for class de.christofreichardt.json.websignature.JWS.Signature
- SignatureBegin - Interface in de.christofreichardt.json.websignature.interfaces
-
Defines the starting point for generating JSON Web Signatures.
- SignatureEnd - Interface in de.christofreichardt.json.websignature.interfaces
-
Defines the final step within the workflow of the Fluent API regarding the generation of signatures.
- skipLeadingZeroes(byte[]) - Static method in class de.christofreichardt.json.webkey.JsonWebKeyUtils
-
Cuts leading zeroes from the beginning of the byte array.
- skipSurplusZeroes(byte[], int) - Static method in class de.christofreichardt.json.webkey.JsonWebKeyUtils
-
Cuts surplus zeroes from the beginning of the byte array.
- strJoseHeader() - Method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Returns the decoded (protected) JOSE header.
- strPayload() - Method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Returns the decoded payload.
T
- toJson() - Method in class de.christofreichardt.json.webkey.JsonWebKey
-
Serializes the common JWK parameters.
- toJson() - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
Converts this
JsonWebKeyPairinto a plainJsonObject. - toJson() - Method in class de.christofreichardt.json.webkey.JsonWebPublicKey
-
Converts this
JsonWebPublicKeyinto a plainJsonObject. - toJson() - Method in class de.christofreichardt.json.webkey.JsonWebSecretKey
-
Converts this
JsonWebSecretKeyinto a plainJsonObject. - toJson() - Method in class de.christofreichardt.json.websignature.JOSEHeader
-
Converts this
JOSEHeaderinto a plainJsonObject. - toString() - Method in class de.christofreichardt.asn1.ASN1Integer
- toString() - Method in class de.christofreichardt.asn1.ASN1IntSequence
- toString() - Method in class de.christofreichardt.json.webkey.JsonWebKey
- toString() - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair
-
Returns a textual representation of this
JsonWebKeyPair. - toString() - Method in class de.christofreichardt.json.webkey.JsonWebPublicKey
-
Returns a textual representation of this
JsonWebPublicKey. - toString() - Method in class de.christofreichardt.json.webkey.JsonWebSecretKey
-
Returns a textual representation of this
JsonWebSecretKey. - toString() - Method in class de.christofreichardt.json.webkey.NamedECParameterSpec
-
Returns some identifier of the wrapped curve, e.g.
- toString() - Method in record class de.christofreichardt.json.websignature.JWSCompactSerialization
-
Returns the actual compact serialization format as string object.
- typ(String) - Method in interface de.christofreichardt.json.websignature.interfaces.BeforeHeader
-
Notes the given
typ. - typ(String) - Method in class de.christofreichardt.json.websignature.JWS.Signature
U
- update(byte[]) - Method in class de.christofreichardt.json.websignature.HmacSHA256
- update(byte[]) - Method in interface de.christofreichardt.json.websignature.JWSAlgorithm
-
Hands over the given bytes to the underlying algorithm provided by the Java platform.
- update(byte[]) - Method in class de.christofreichardt.json.websignature.SHA256withECDSA
- update(byte[]) - Method in class de.christofreichardt.json.websignature.SHA256withRSA
- update(byte[]) - Method in class de.christofreichardt.json.websignature.SHA512WithECDSA
V
- validate() - Method in interface de.christofreichardt.json.websignature.interfaces.ValidationEnd
-
Uses the gathered information to validate the signature.
- validate() - Method in class de.christofreichardt.json.websignature.JWS.Validator
- validate(Key) - Method in class de.christofreichardt.json.websignature.JWSValidator
-
Validates the JSON web signature by using the given
Key. - ValidationBegin - Interface in de.christofreichardt.json.websignature.interfaces
-
The first stopover within the workflow of the Fluent API regarding the validation of signatures.
- ValidationEnd - Interface in de.christofreichardt.json.websignature.interfaces
-
Defines the final step within the workflow of the Fluent API regarding the generation of signatures.
- Validator() - Constructor for class de.christofreichardt.json.websignature.JWS.Validator
- verify(byte[]) - Method in class de.christofreichardt.json.websignature.HmacSHA256
- verify(byte[]) - Method in interface de.christofreichardt.json.websignature.JWSAlgorithm
-
Requests the validation of the delivered data agianst the given signature.
- verify(byte[]) - Method in class de.christofreichardt.json.websignature.SHA256withECDSA
- verify(byte[]) - Method in class de.christofreichardt.json.websignature.SHA256withRSA
- verify(byte[]) - Method in class de.christofreichardt.json.websignature.SHA512WithECDSA
W
- webkey(JsonWebKeyPair) - Method in interface de.christofreichardt.json.websignature.interfaces.SignatureBegin
-
Notes the given
JsonWebKeyPair. - webkey(JsonWebKeyPair) - Method in class de.christofreichardt.json.websignature.JWS.Signature
- webkey(JsonWebPublicKey) - Method in interface de.christofreichardt.json.websignature.interfaces.BeforeKey
-
Notes the given
JsonWebPublicKey. - webkey(JsonWebPublicKey) - Method in class de.christofreichardt.json.websignature.JWS.Validator
- webkey(JsonWebSecretKey) - Method in interface de.christofreichardt.json.websignature.interfaces.BeforeKey
-
Notes the given
JsonWebSecretKey. - webkey(JsonWebSecretKey) - Method in interface de.christofreichardt.json.websignature.interfaces.SignatureBegin
-
Notes the given
JsonWebSecretKey. - webkey(JsonWebSecretKey) - Method in class de.christofreichardt.json.websignature.JWS.Signature
- webkey(JsonWebSecretKey) - Method in class de.christofreichardt.json.websignature.JWS.Validator
- withAlgorithm(String) - Method in class de.christofreichardt.json.webkey.JsonWebSecretKey.Builder
-
Indicates the
algorithmto be used when generating theSecretKey. - withKeysize(int) - Method in class de.christofreichardt.json.webkey.JsonWebSecretKey.Builder
-
Indicates the
keysizeto be used when generating theSecretKey. - withKid(String) - Method in class de.christofreichardt.json.webkey.JsonWebKey.Builder
-
Augments the builder instance with the "kid" parameter.
- withKid(String) - Method in class de.christofreichardt.json.websignature.JOSEHeader.AlgorithmBuilder
-
Augments the builder instance with the "kid" parameter.
- withKid(String) - Method in class de.christofreichardt.json.websignature.JOSEHeader.PublicKeyBuilder
-
Augments the builder instance with the "kid" parameter.
- withSecureRandom(SecureRandom) - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair.Builder
-
Indicates the
SecureRandominstance to be used when generating theJsonWebKeyPair. - withSecureRandom(SecureRandom) - Method in class de.christofreichardt.json.webkey.JsonWebKeyPair.ParameterSpecBuilder
-
Indicates the
SecureRandominstance to be used when generating theJsonWebKeyPair. - withTyp(String) - Method in class de.christofreichardt.json.websignature.JOSEHeader.AlgorithmBuilder
-
Augments the builder instance with the "typ" parameter.
- withTyp(String) - Method in class de.christofreichardt.json.websignature.JOSEHeader.PublicKeyBuilder
-
Augments the builder instance with the "typ" parameter.
All Classes and Interfaces|All Packages