APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.security.ssl

pack-priv final Enum SSLCipher

extends Enum<SSLCipher>
Class Inheritance
Imports
sun.security.ssl.Authenticator.MAC, sun.security.util.Debug, javax.crypto.BadPaddingException, .Cipher, .IllegalBlockSizeException, .NoSuchPaddingException, .SecretKey, .ShortBufferException, javax.crypto.spec.GCMParameterSpec, .IvParameterSpec, java.nio.ByteBuffer, java.security.GeneralSecurityException, .InvalidAlgorithmParameterException, .InvalidKeyException, .Key, .NoSuchAlgorithmException, .SecureRandom, .Security, java.security.spec.AlgorithmParameterSpec, java.util.AbstractMap.SimpleImmutableEntry, .Arrays, .HashMap, .Locale, .Map

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
pack-priv static interface
pack-priv abstract static class
pack-priv abstract static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
pack-priv static interface

Field Summary

Modifier and TypeField and Description
pack-priv final String
pack-priv final boolean
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
public static final SSLCipher
pack-priv static final HashMap<String, Long>
pack-priv final CipherType
pack-priv static final long
pack-priv final String
pack-priv final int
pack-priv final boolean
pack-priv final int
private final boolean
pack-priv final int
pack-priv final int
private final Map.Entry<SSLCipher.ReadCipherGenerator, ProtocolVersion[]>[]
pack-priv static final String[]
pack-priv final int
pack-priv final String
private final Map.Entry<SSLCipher.WriteCipherGenerator, ProtocolVersion[]>[]

Constructor Summary

AccessConstructor and Description
private
SSLCipher(String transformation, CipherType cipherType, int keySize, int expandedKeySize, int ivSize, int fixedIvSize, boolean allowed, boolean exportable, Map.Entry<SSLCipher.ReadCipherGenerator, ProtocolVersion[]>[] readCipherGenerators, Map.Entry<SSLCipher.WriteCipherGenerator, ProtocolVersion[]>[] writeCipherGenerators)

Method Summary

Modifier and TypeMethod and Description
private static void
addMac(Authenticator.MAC signer, ByteBuffer destination, byte contentType)

private static int
addPadding(ByteBuffer bb, int blockSize)

private static int
calculateRemainingLen(Authenticator.MAC signer, int fullLen, int usedLen)

private static void
checkCBCMac(Authenticator.MAC signer, ByteBuffer bb, byte contentType, int cipheredLength, byte[] sequence)

private static boolean
checkMacTags(byte contentType, ByteBuffer bb, Authenticator.MAC signer, byte[] sequence, boolean isSimulated)

private static int[]
checkPadding(ByteBuffer bb, byte pad)

private static void
checkStreamMac(Authenticator.MAC signer, ByteBuffer bb, byte contentType, byte[] sequence)

private static int[]
compareMacTags(ByteBuffer bb, byte[] tag)

pack-priv SSLCipher.SSLReadCipher
createReadCipher(Authenticator authenticator, ProtocolVersion protocolVersion, SecretKey key, IvParameterSpec iv, SecureRandom random)

pack-priv SSLCipher.SSLWriteCipher
createWriteCipher(Authenticator authenticator, ProtocolVersion protocolVersion, SecretKey key, IvParameterSpec iv, SecureRandom random)

pack-priv boolean
isAvailable()

Test if this bulk cipher is available.

private static boolean
private static boolean
isUnlimited(int keySize, String transformation)

private static int
removePadding(ByteBuffer bb, int tagLen, int blockSize, ProtocolVersion protocolVersion)

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static SSLCipher
public static SSLCipher[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf