public class PublicKeySignWrapper extends Object implements PrimitiveWrapper<PublicKeySign,PublicKeySign>
PrimitiveWrapper<PublicKeySign>.
The returned primitive works with a keyset (rather than a single key). To sign a message, it uses the primary key in the keyset, and prepends to the signature a certain prefix associated with the primary key.
| Modifier and Type | Method and Description |
|---|---|
Class<PublicKeySign> |
getInputPrimitiveClass()
Returns the primitive class object of the primitive used to create B.
|
Class<PublicKeySign> |
getPrimitiveClass()
Returns the primitive class object of the primitive managed.
|
static void |
register()
Register the wrapper within the registry.
|
PublicKeySign |
wrap(PrimitiveSet<PublicKeySign> primitives)
Wraps a
PrimitiveSet and returns a single instance. |
public PublicKeySign wrap(PrimitiveSet<PublicKeySign> primitives)
PrimitiveWrapperPrimitiveSet and returns a single instance.
This method gets called when a new primitive is created. primitiveSet is immutable.
This has to be implemented when a new primitive type is added.
wrap in interface PrimitiveWrapper<PublicKeySign,PublicKeySign>public Class<PublicKeySign> getPrimitiveClass()
PrimitiveWrapperreturn P.class; when implementing a wrapper creating objects
of type P.getPrimitiveClass in interface PrimitiveWrapper<PublicKeySign,PublicKeySign>public Class<PublicKeySign> getInputPrimitiveClass()
PrimitiveWrapperreturn B.class;.getInputPrimitiveClass in interface PrimitiveWrapper<PublicKeySign,PublicKeySign>public static void register()
throws GeneralSecurityException
This is required for calls to Keyset.getPrimitive with a PublicKeySign
argument.
GeneralSecurityException