Class WrappedStreamingAead
- java.lang.Object
-
- com.google.crypto.tink.streamingaead.internal.WrappedStreamingAead
-
public class WrappedStreamingAead extends java.lang.ObjectStreamingAeadWrapper 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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StreamingAeadwrap(KeysetHandleInterface handle, PrimitiveWrapper.PrimitiveFactory<StreamingAead> factory)
-
-
-
Method Detail
-
wrap
public static StreamingAead wrap(KeysetHandleInterface handle, PrimitiveWrapper.PrimitiveFactory<StreamingAead> factory) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
-