public class PublicKeyVerifyWrapper extends Object implements PrimitiveWrapper<PublicKeyVerify,PublicKeyVerify>
PrimitiveWrapper<DeterministicAead>.
The returned primitive works with a keyset (rather than a single key). To verify a signature,
the primitive uses the prefix of the signature to efficiently select the right key in the set. If
there is no key associated with the prefix or if the keys associated with the prefix do not work,
the primitive tries all keys with OutputPrefixType.RAW.
| Constructor and Description |
|---|
PublicKeyVerifyWrapper() |
| Modifier and Type | Method and Description |
|---|---|
Class<PublicKeyVerify> |
getInputPrimitiveClass()
Returns the primitive class object of the primitive used to create B.
|
Class<PublicKeyVerify> |
getPrimitiveClass()
Returns the primitive class object of the primitive managed.
|
static void |
registerToInternalPrimitiveRegistry(PrimitiveRegistry.Builder primitiveRegistryBuilder)
registerToInternalPrimitiveRegistry is a non-public method (it takes an argument of an
internal-only type) registering an instance of
PublicKeyVerifyWrapper to the provided
PrimitiveRegistry#Builder. |
PublicKeyVerify |
wrap(PrimitiveSet<PublicKeyVerify> primitives)
Wraps a
PrimitiveSet and returns a single instance. |
public PublicKeyVerify wrap(PrimitiveSet<PublicKeyVerify> 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<PublicKeyVerify,PublicKeyVerify>public Class<PublicKeyVerify> getPrimitiveClass()
PrimitiveWrapperreturn P.class; when implementing a wrapper creating objects
of type P.getPrimitiveClass in interface PrimitiveWrapper<PublicKeyVerify,PublicKeyVerify>public Class<PublicKeyVerify> getInputPrimitiveClass()
PrimitiveWrapperreturn B.class;.getInputPrimitiveClass in interface PrimitiveWrapper<PublicKeyVerify,PublicKeyVerify>public static void registerToInternalPrimitiveRegistry(PrimitiveRegistry.Builder primitiveRegistryBuilder) throws GeneralSecurityException
PublicKeyVerifyWrapper to the provided
PrimitiveRegistry#Builder.GeneralSecurityException