@NotThreadSafe public abstract class RaesOutputStream extends net.java.truecommons.io.DecoratingOutputStream
OutputStream
which produces a file with data ecnrypted according
to the Random Access Encryption Specification (RAES).RaesReadOnlyChannel
Constructor and Description |
---|
RaesOutputStream() |
Modifier and Type | Method and Description |
---|---|
static RaesOutputStream |
create(RaesParameters param,
net.java.truecommons.io.Sink sink)
Creates a new RAES output stream.
|
abstract net.java.truecommons.key.spec.KeyStrength |
getKeyStrength()
Returns the key strength which is actually used to encrypt the data of
the RAES file.
|
@CreatesObligation public static RaesOutputStream create(RaesParameters param, net.java.truecommons.io.Sink sink) throws RaesParametersException, IOException
param
- The RaesParameters
used to determine and configure
the type of RAES file created.
If the 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 gets created.
Provide an implementation of the
RaesParametersProvider
interface for more control.
Instances of this interface are queried to find RAES parameters
which match a known RAES type.
This algorithm gets recursively applied.sink
- the sink for writing the RAES file to.RaesParametersException
- if the RAES parameters type is unknown.IOException
- on any I/O error.public abstract net.java.truecommons.key.spec.KeyStrength getKeyStrength()
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.