Module io.inverno.mod.security.jose
Class GenericJsonJWS.AbstractSignature<A>
java.lang.Object
io.inverno.mod.security.jose.internal.jws.GenericJsonJWS.AbstractSignature<A>
- Type Parameters:
A- the payload type
- All Implemented Interfaces:
JsonJWS.Signature<A>
- Direct Known Subclasses:
GenericJsonJWS.GenericBuiltSignature,GenericJsonJWS.GenericReadSignature
- Enclosing class:
- GenericJsonJWS<A,
B extends JsonJWS.Signature<A>>
public abstract static class GenericJsonJWS.AbstractSignature<A>
extends Object
implements JsonJWS.Signature<A>
Base JsonJWS.Signature implementation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSignature(JWSHeader protectedHeader, JWSHeader unprotectedHeader) Creates a JSON JWS signature. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the protected JWS header encoded as Base64URL.Returns the protected header which is integrity protected (i.e. processed within the signature).Returns the unprotected header.inthashCode()Methods 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
getSignature
-
Field Details
-
protectedHeader
The signature protected JWS header configurer. -
unprotectedHeader
The signature unprotected JWS header configurer.
-
-
Constructor Details
-
AbstractSignature
Creates a JSON JWS signature.
- Parameters:
protectedHeader- the signature specific protected JWS headerunprotectedHeader- the signature specific unprotected JWS header
-
-
Method Details
-
getProtectedHeader
Description copied from interface:JsonJWS.SignatureReturns the protected header which is integrity protected (i.e. processed within the signature).
- Specified by:
getProtectedHeaderin interfaceJsonJWS.Signature<A>- Returns:
- the protected header
-
getEncodedProtectedHeader
Returns the protected JWS header encoded as Base64URL.
- Returns:
- the Base64URL encoded protected JWS header
-
getUnprotectedHeader
Description copied from interface:JsonJWS.SignatureReturns the unprotected header.
- Specified by:
getUnprotectedHeaderin interfaceJsonJWS.Signature<A>- Returns:
- the unprotected header
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceJsonJWS.Signature<A>- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceJsonJWS.Signature<A>- Overrides:
equalsin classObject
-