Module io.inverno.mod.security.jose
Class GenericJsonJWS.GenericBuiltSignature<A>
java.lang.Object
io.inverno.mod.security.jose.internal.jws.GenericJsonJWS.AbstractSignature<A>
io.inverno.mod.security.jose.internal.jws.GenericJsonJWS.GenericBuiltSignature<A>
- Type Parameters:
A- the payload type
- All Implemented Interfaces:
JsonJWS.BuiltSignature<A>,JsonJWS.Signature<A>
- Enclosing class:
- GenericJsonJWS<A,
B extends JsonJWS.Signature<A>>
public static class GenericJsonJWS.GenericBuiltSignature<A>
extends GenericJsonJWS.AbstractSignature<A>
implements JsonJWS.BuiltSignature<A>
Generic built signature implementation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Field Summary
Fields inherited from class io.inverno.mod.security.jose.internal.jws.GenericJsonJWS.AbstractSignature
protectedHeader, unprotectedHeader -
Constructor Summary
ConstructorsConstructorDescriptionGenericBuiltSignature(JWSHeader protectedHeader, JWSHeader unprotectedHeader, JWS<A> jws) Creates a JSON JWS built signature. -
Method Summary
Methods inherited from class io.inverno.mod.security.jose.internal.jws.GenericJsonJWS.AbstractSignature
getEncodedProtectedHeader, getProtectedHeader, getUnprotectedHeaderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.inverno.mod.security.jose.jws.JsonJWS.Signature
getProtectedHeader, getUnprotectedHeader
-
Constructor Details
-
GenericBuiltSignature
Creates a JSON JWS built signature.
- Parameters:
protectedHeader- the signature specific protected JWS headerunprotectedHeader- the signature specific unprotected JWS headerjws- the signature JWS
-
-
Method Details
-
getSignature
Description copied from interface:JsonJWS.SignatureReturns the signature encoded as Base64URL.
- Specified by:
getSignaturein interfaceJsonJWS.Signature<A>- Returns:
- the Base64URL encoded signature with no padding
-
getJWS
Description copied from interface:JsonJWS.BuiltSignatureReturns the signature JWS.
- Specified by:
getJWSin interfaceJsonJWS.BuiltSignature<A>- Returns:
- the signature JWS
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceJsonJWS.Signature<A>- Overrides:
hashCodein classGenericJsonJWS.AbstractSignature<A>
-
equals
- Specified by:
equalsin interfaceJsonJWS.Signature<A>- Overrides:
equalsin classGenericJsonJWS.AbstractSignature<A>
-