Class StreamingAeadWrapper

  • All Implemented Interfaces:
    PrimitiveWrapper<StreamingAead,​StreamingAead>

    public class StreamingAeadWrapper
    extends java.lang.Object
    implements PrimitiveWrapper<StreamingAead,​StreamingAead>
    StreamingAeadWrapper is the implementation of PrimitiveWrapper for the StreamingAead primitive.

    The returned primitive works with a keyset (rather than a single key). To encrypt a plaintext, it uses the primary key in the keyset. To decrypt, the primitive tries the enabled keys from the keyset to select the right key for decryption. All keys in a keyset of StreamingAead have type OutputPrefixType.RAW.

    • Method Detail

      • 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 StreamingAeadWrapper to the provided PrimitiveRegistry.Builder.
        Throws:
        java.security.GeneralSecurityException