Deprecated
Sun JDK internal use only --- WILL BE REMOVED in a future release.
TlsKeyMaterialSpec.
Instances of this class are immutable.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int | |
| private final byte[] | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final SecretKey | |
| private final int | |
| private final int | |
| private final String | |
| private final int | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | TlsKeyMaterialParameterSpec(SecretKey
the master secret masterSecret, int the major number of the protocol version majorVersion, int the minor number of the protocol version minorVersion, byte[] the client's random value clientRandom, byte[] the server's random value serverRandom, String the algorithm name of the cipher keys to
be generated cipherAlgorithm, int if 0, no cipher keys will be generated;
otherwise, the length in bytes of cipher keys to be
generated for domestic cipher suites; for cipher suites defined as
exportable, the number of key material bytes to be generated; cipherKeyLength, int 0 for domestic cipher suites; for
exportable cipher suites the length in bytes of the key to be
generated. expandedCipherKeyLength, int the length in bytes of the initialization vector
to be generated, or 0 if no initialization vector is required ivLength, int the length in bytes of the MAC key to be generated macKeyLength, String the name of the TLS PRF hash algorithm to use.
Used only for TLS 1.2+. TLS1.1 and earlier use a fixed PRF. prfHashAlg, int the output length of the TLS PRF hash algorithm.
Used only for TLS 1.2+. prfHashLength, int the input block size of the TLS PRF hash algorithm.
Used only for TLS 1.2+. prfBlockSize)Constructs a new TlsKeyMaterialParameterSpec. |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public String | |
| public int | Returns: the length in bytes of the encryption key to be generated.Returns the length in bytes of the encryption key to be generated. |
| public byte[] | Returns: a copy of the client's random value.Returns a copy of the client's random value. |
| public int | Returns: the length in bytes of the expanded encryption key to be generated.Returns the length in bytes of the expanded encryption key to be generated. |
| public int | Returns: the length in bytes of the initialization vector to be generated.Returns the length in bytes of the initialization vector to be generated. |
| public int | Returns: the length in bytes of the MAC key to be generated.Returns the length in bytes of the MAC key to be generated. |
| public int | |
| public SecretKey | |
| public int | |
| public int | Returns: the hash algorithm block sizeObtains the block size of the PRF hash algorithm. |
| public String | Returns: the hash algorithm.Obtains the PRF hash algorithm to use in the PRF calculation. |
| public int | |
| public byte[] | Returns: a copy of the server's random value.Returns a copy of the server's random value. |
| cipherAlgorithm | back to summary |
|---|---|
| private final String cipherAlgorithm | |
| cipherKeyLength | back to summary |
|---|---|
| private final int cipherKeyLength | |
| clientRandom | back to summary |
|---|---|
| private final byte[] clientRandom | |
| expandedCipherKeyLength | back to summary |
|---|---|
| private final int expandedCipherKeyLength | |
| ivLength | back to summary |
|---|---|
| private final int ivLength | |
| macKeyLength | back to summary |
|---|---|
| private final int macKeyLength | |
| majorVersion | back to summary |
|---|---|
| private final int majorVersion | |
| masterSecret | back to summary |
|---|---|
| private final SecretKey masterSecret | |
| minorVersion | back to summary |
|---|---|
| private final int minorVersion | |
| prfBlockSize | back to summary |
|---|---|
| private final int prfBlockSize | |
| prfHashAlg | back to summary |
|---|---|
| private final String prfHashAlg | |
| prfHashLength | back to summary |
|---|---|
| private final int prfHashLength | |
| serverRandom | back to summary |
|---|---|
| private final byte[] serverRandom | |
| TlsKeyMaterialParameterSpec | back to summary |
|---|---|
| public TlsKeyMaterialParameterSpec(SecretKey masterSecret, int majorVersion, int minorVersion, byte[] clientRandom, byte[] serverRandom, String cipherAlgorithm, int cipherKeyLength, int expandedCipherKeyLength, int ivLength, int macKeyLength, String prfHashAlg, int prfHashLength, int prfBlockSize) Constructs a new TlsKeyMaterialParameterSpec.
| |
| checkSign | back to summary |
|---|---|
| private static int checkSign(int k) | |
| getCipherAlgorithm | back to summary |
|---|---|
| public String getCipherAlgorithm() Returns the cipher algorithm.
| |
| getCipherKeyLength | back to summary |
|---|---|
| public int getCipherKeyLength() Returns the length in bytes of the encryption key to be generated.
| |
| getClientRandom | back to summary |
|---|---|
| public byte[] getClientRandom() Returns a copy of the client's random value.
| |
| getExpandedCipherKeyLength | back to summary |
|---|---|
| public int getExpandedCipherKeyLength() Returns the length in bytes of the expanded encryption key to be generated. Returns zero if the expanded encryption key is not supposed to be generated.
| |
| getIvLength | back to summary |
|---|---|
| public int getIvLength() Returns the length in bytes of the initialization vector to be generated. Returns zero if the initialization vector is not supposed to be generated.
| |
| getMacKeyLength | back to summary |
|---|---|
| public int getMacKeyLength() Returns the length in bytes of the MAC key to be generated.
| |
| getMajorVersion | back to summary |
|---|---|
| public int getMajorVersion() Returns the major version number.
| |
| getMasterSecret | back to summary |
|---|---|
| public SecretKey getMasterSecret() Returns the master secret.
| |
| getMinorVersion | back to summary |
|---|---|
| public int getMinorVersion() Returns the minor version number.
| |
| getPRFBlockSize | back to summary |
|---|---|
| public int getPRFBlockSize() Obtains the block size of the PRF hash algorithm.
| |
| getPRFHashAlg | back to summary |
|---|---|
| public String getPRFHashAlg() Obtains the PRF hash algorithm to use in the PRF calculation.
| |
| getPRFHashLength | back to summary |
|---|---|
| public int getPRFHashLength() Obtains the length of the PRF hash algorithm.
| |
| getServerRandom | back to summary |
|---|---|
| public byte[] getServerRandom() Returns a copy of the server's random value.
| |