Class KeysetDeriverWrapper
- java.lang.Object
-
- com.google.crypto.tink.keyderivation.internal.KeysetDeriverWrapper
-
- All Implemented Interfaces:
PrimitiveWrapper<KeyDeriver,KeysetDeriver>
public final class KeysetDeriverWrapper extends java.lang.Object implements PrimitiveWrapper<KeyDeriver,KeysetDeriver>
Knows how to implement a KeysetDeriver object from KeyDeriver objects.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.crypto.tink.internal.PrimitiveWrapper
PrimitiveWrapper.PrimitiveFactory<B>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<KeyDeriver>getInputPrimitiveClass()Returns the primitive class object of the primitive used to create B.java.lang.Class<KeysetDeriver>getPrimitiveClass()Returns the primitive class object of the primitive managed.static voidregister()Registers this wrapper with Tink, allowing to use the primitive.KeysetDeriverwrap(KeysetHandleInterface keysetHandle, MonitoringAnnotations annotations, PrimitiveWrapper.PrimitiveFactory<KeyDeriver> factory)Wraps aPrimitiveSetand returns a single instance.
-
-
-
Method Detail
-
wrap
public KeysetDeriver wrap(KeysetHandleInterface keysetHandle, MonitoringAnnotations annotations, PrimitiveWrapper.PrimitiveFactory<KeyDeriver> 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<KeyDeriver,KeysetDeriver>- Throws:
java.security.GeneralSecurityException
-
getPrimitiveClass
public java.lang.Class<KeysetDeriver> 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<KeyDeriver,KeysetDeriver>
-
getInputPrimitiveClass
public java.lang.Class<KeyDeriver> 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<KeyDeriver,KeysetDeriver>
-
register
public static void register() throws java.security.GeneralSecurityExceptionRegisters this wrapper with Tink, allowing to use the primitive.- Throws:
java.security.GeneralSecurityException
-
-