public static enum Encryption.ProtectedStreamAlgorithm extends Enum<Encryption.ProtectedStreamAlgorithm>
StreamFormat
Enum Constant and Description |
---|
ARC_FOUR |
CHA_CHA_20 |
NONE |
SALSA_20 |
Modifier and Type | Method and Description |
---|---|
static Encryption.ProtectedStreamAlgorithm |
getAlgorithm(int innerRandomStreamId) |
static StreamEncryptor |
getStreamEncryptor(Encryption.ProtectedStreamAlgorithm psa,
byte[] key) |
static Encryption.ProtectedStreamAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Encryption.ProtectedStreamAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Encryption.ProtectedStreamAlgorithm NONE
public static final Encryption.ProtectedStreamAlgorithm ARC_FOUR
public static final Encryption.ProtectedStreamAlgorithm SALSA_20
public static final Encryption.ProtectedStreamAlgorithm CHA_CHA_20
public static Encryption.ProtectedStreamAlgorithm[] values()
for (Encryption.ProtectedStreamAlgorithm c : Encryption.ProtectedStreamAlgorithm.values()) System.out.println(c);
public static Encryption.ProtectedStreamAlgorithm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Encryption.ProtectedStreamAlgorithm getAlgorithm(int innerRandomStreamId)
public static StreamEncryptor getStreamEncryptor(Encryption.ProtectedStreamAlgorithm psa, byte[] key)
Copyright © 2023. All rights reserved.