@Immutable public class PrfSetWrapper extends Object implements PrimitiveWrapper<Prf,PrfSet>
The returned primitive has instances of Prf for each key in the KeySet. The individual
Prf instances can then be used to compute psuedo-random sequences from the underlying key.
PrimitiveWrapper.PrimitiveFactory<B>| Constructor and Description |
|---|
PrfSetWrapper() |
| Modifier and Type | Method and Description |
|---|---|
Class<Prf> |
getInputPrimitiveClass()
Returns the primitive class object of the primitive used to create B.
|
Class<PrfSet> |
getPrimitiveClass()
Returns the primitive class object of the primitive managed.
|
static void |
register() |
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
PrfSetWrapper to the provided PrimitiveRegistry.Builder. |
PrfSet |
wrap(KeysetHandleInterface keysetHandle,
MonitoringAnnotations annotations,
PrimitiveWrapper.PrimitiveFactory<Prf> factory)
Wraps a
PrimitiveSet and returns a single instance. |
public PrfSet wrap(KeysetHandleInterface keysetHandle, MonitoringAnnotations annotations, PrimitiveWrapper.PrimitiveFactory<Prf> factory) throws GeneralSecurityException
PrimitiveWrapperPrimitiveSet and returns a single instance.
This method gets called when a new primitive is created.
wrap in interface PrimitiveWrapper<Prf,PrfSet>GeneralSecurityExceptionpublic Class<PrfSet> getPrimitiveClass()
PrimitiveWrapperreturn P.class; when implementing a wrapper creating objects
of type P.getPrimitiveClass in interface PrimitiveWrapper<Prf,PrfSet>public Class<Prf> getInputPrimitiveClass()
PrimitiveWrapperreturn B.class;.getInputPrimitiveClass in interface PrimitiveWrapper<Prf,PrfSet>public static void register()
throws GeneralSecurityException
GeneralSecurityExceptionpublic static void registerToInternalPrimitiveRegistry(PrimitiveRegistry.Builder primitiveRegistryBuilder) throws GeneralSecurityException
PrfSetWrapper to the provided PrimitiveRegistry.Builder.GeneralSecurityException