|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CipherSuite>
org.neociclo.odetteftp.protocol.v20.CipherSuite
public enum CipherSuite
Enumeration indicating the cipher suite used to signe and/or encrypt the file and also to indicate the cipher suite that should be used when a signed EERP or NERP is requested.
Value: '00' No security services Symmetric Asymmetric Hashing ----------------- ------------ ------- '01' 3DES_EDE_CBC_3KEY RSA_PKCS1_15 SHA-1 '02' AES_256_CBC RSA_PKCS1_15 SHA-1TripleDES is using Cipher Block Chaining (CBC) mode for added security and uses the Encryption Decryption Encryption (EDE) process with 3 different 64-bit keys. RSA padding is as defined in [PKCS#1]. AES is using a 256-bit key in CBC mode.
Enum Constant Summary | |
---|---|
AES_RSA_SHA1
|
|
NO_CIPHER_SUITE_SELECTION
|
|
TRIPLEDES_RSA_SHA1
|
Method Summary | |
---|---|
int |
getCode()
Return the protocol representation of enum. |
static CipherSuite |
parse(int code)
Convenient method for parsing the proper CipherSuite enum given a protocol code. |
static CipherSuite |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CipherSuite[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CipherSuite NO_CIPHER_SUITE_SELECTION
public static final CipherSuite TRIPLEDES_RSA_SHA1
public static final CipherSuite AES_RSA_SHA1
Method Detail |
---|
public static CipherSuite[] values()
for (CipherSuite c : CipherSuite.values()) System.out.println(c);
public static CipherSuite valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static CipherSuite parse(int code) throws OdetteFtpException
code
- The cipher suite selection being evaluated
OdetteFtpException
CommandNotRecognisedException
- Code not recognizedpublic int getCode()
int
corresponding protocol code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |