@NotThreadSafe public abstract class RaesOutputStream extends CipherOutputStream
OutputStream to produce a file with data ecnrypted according
to the Random Access Encryption Specification (RAES).RaesReadOnlyFilecipherdelegate| Modifier and Type | Method and Description |
|---|---|
static RaesOutputStream |
getInstance(OutputStream out,
RaesParameters param)
Returns a new
RaesOutputStream. |
abstract KeyStrength |
getKeyStrength()
Returns the key strength which is actually used to encrypt the data of
the RAES file.
|
close, finish, write, writeflush, toString, write@CreatesObligation public static RaesOutputStream getInstance(@WillCloseWhenClosed OutputStream out, @CheckForNull RaesParameters param) throws IOException
RaesOutputStream.out - the output stream to decorate for writing the ciphered data.param - The RaesParameters used to determine and
configure the type of RAES file created.
If the run time class of this parameter matches multiple
parameter interfaces, it is at the discretion of this
implementation which one is picked and hence which type of
RAES file is created.
If you need more control over this, pass in an instance which's
run time class just implements the
RaesParametersProvider interface.
Instances of this interface are queried to find RAES parameters
which match a known RAES type.
This algorithm is recursively applied.RaesOutputStream.RaesParametersException - if param is null or
no suitable RAES parameters can be found.IOException - on any I/O error.public abstract KeyStrength getKeyStrength()
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.