Class 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 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 Detail

      • PrfSetWrapper

        public PrfSetWrapper()
    • Method Detail

      • getPrimitiveClass

        public java.lang.Class<PrfSet> getPrimitiveClass()
        Description copied from interface: PrimitiveWrapper
        Returns the primitive class object of the primitive managed. Used for internal management. Should be implemented as return P.class; when implementing a wrapper creating objects of type P.
        Specified by:
        getPrimitiveClass in interface PrimitiveWrapper<Prf,​PrfSet>
      • getInputPrimitiveClass

        public java.lang.Class<Prf> getInputPrimitiveClass()
        Description copied from interface: PrimitiveWrapper
        Returns the primitive class object of the primitive used to create B. Used for internal management. Should be implemented as return B.class;.
        Specified by:
        getInputPrimitiveClass in interface PrimitiveWrapper<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 of PrfSetWrapper to the provided PrimitiveRegistry.Builder.
        Throws:
        java.security.GeneralSecurityException