@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.
| 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() |
PrfSet |
wrap(PrimitiveSet<Prf> set)
Wraps a
PrimitiveSet and returns a single instance. |
public PrfSet wrap(PrimitiveSet<Prf> set) throws GeneralSecurityException
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<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
GeneralSecurityException