Package com.google.crypto.tink.prf
Class PrfSetWrapper
- java.lang.Object
-
- com.google.crypto.tink.prf.PrfSetWrapper
-
- All Implemented Interfaces:
PrimitiveWrapper<Prf,PrfSet>
@Immutable public class PrfSetWrapper extends java.lang.Object implements PrimitiveWrapper<Prf,PrfSet>
PrfSetWrapper is the implementation of PrimitiveWrapper for the PrfSet primitive.The returned primitive has instances of
Prffor each key in the KeySet. The individual Prf instances can then be used to compute psuedo-random sequences from the underlying key.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.crypto.tink.internal.PrimitiveWrapper
PrimitiveWrapper.PrimitiveFactory<B>
-
-
Constructor Summary
Constructors Constructor Description PrfSetWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<Prf>getInputPrimitiveClass()Returns the primitive class object of the primitive used to create B.java.lang.Class<PrfSet>getPrimitiveClass()Returns the primitive class object of the primitive managed.static voidregister()static voidregisterToInternalPrimitiveRegistry(PrimitiveRegistry.Builder primitiveRegistryBuilder)registerToInternalPrimitiveRegistry is a non-public method (it takes an argument of an internal-only type) registering an instance ofPrfSetWrapperto the providedPrimitiveRegistry.Builder.PrfSetwrap(KeysetHandleInterface keysetHandle, MonitoringAnnotations annotations, PrimitiveWrapper.PrimitiveFactory<Prf> factory)Wraps aPrimitiveSetand returns a single instance.
-
-
-
Method Detail
-
wrap
public PrfSet wrap(KeysetHandleInterface keysetHandle, MonitoringAnnotations annotations, PrimitiveWrapper.PrimitiveFactory<Prf> factory) throws java.security.GeneralSecurityException
Description copied from interface:PrimitiveWrapperWraps aPrimitiveSetand returns a single instance.This method gets called when a new primitive is created.
- Specified by:
wrapin interfacePrimitiveWrapper<Prf,PrfSet>- Throws:
java.security.GeneralSecurityException
-
getPrimitiveClass
public java.lang.Class<PrfSet> getPrimitiveClass()
Description copied from interface:PrimitiveWrapperReturns the primitive class object of the primitive managed. Used for internal management. Should be implemented asreturn P.class;when implementing a wrapper creating objects of typeP.- Specified by:
getPrimitiveClassin interfacePrimitiveWrapper<Prf,PrfSet>
-
getInputPrimitiveClass
public java.lang.Class<Prf> getInputPrimitiveClass()
Description copied from interface:PrimitiveWrapperReturns the primitive class object of the primitive used to create B. Used for internal management. Should be implemented asreturn B.class;.- Specified by:
getInputPrimitiveClassin interfacePrimitiveWrapper<Prf,PrfSet>
-
register
public static void register() throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
registerToInternalPrimitiveRegistry
public static void registerToInternalPrimitiveRegistry(PrimitiveRegistry.Builder primitiveRegistryBuilder) throws java.security.GeneralSecurityException
registerToInternalPrimitiveRegistry is a non-public method (it takes an argument of an internal-only type) registering an instance ofPrfSetWrapperto the providedPrimitiveRegistry.Builder.- Throws:
java.security.GeneralSecurityException
-
-