Deprecated
Sun JDK internal use only --- WILL BE REMOVED in a future release.
Instances of this class are returned by the generateKey()
method of KeyGenerators of the type "TlsKeyMaterial".
Instances of this class are immutable.
| Modifier and Type | Field and Description |
|---|---|
| private final SecretKey | |
| private final IvParameterSpec | |
| private final SecretKey | |
| pack-priv static final long | |
| private final SecretKey | |
| private final IvParameterSpec | |
| private final SecretKey |
| Access | Constructor and Description |
|---|---|
| public | TlsKeyMaterialSpec(SecretKey
the client MAC key (or null) clientMacKey, SecretKey the server MAC key (or null) serverMacKey)Constructs a new TlsKeymaterialSpec from the client and server MAC keys. |
| public | TlsKeyMaterialSpec(SecretKey
the client MAC key (or null) clientMacKey, SecretKey the server MAC key (or null) serverMacKey, SecretKey the client cipher key (or null) clientCipherKey, SecretKey the server cipher key (or null) serverCipherKey)Constructs a new TlsKeymaterialSpec from the client and server MAC keys and client and server cipher keys. |
| public | TlsKeyMaterialSpec(SecretKey
the client MAC key (or null) clientMacKey, SecretKey the server MAC key (or null) serverMacKey, SecretKey the client cipher key (or null) clientCipherKey, IvParameterSpec the client initialization vector (or null) clientIv, SecretKey the server cipher key (or null) serverCipherKey, IvParameterSpec the server initialization vector (or null) serverIv)Constructs a new TlsKeymaterialSpec from the client and server MAC keys, client and server cipher keys, and client and server initialization vectors. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: TlsKeyMaterial.Implements java. Returns |
| public SecretKey | Returns: the client cipher key (or null).Return the client cipher key (or null). |
| public IvParameterSpec | Returns: the client initialization vector (or null).Return the client initialization vector (or null). |
| public SecretKey | |
| public byte[] | Returns: null because keys of this type have no encoding.Implements java. Returns |
| public String | Returns: null because keys of this type have no encoding.Implements java. Returns |
| public SecretKey | Returns: the server cipher key (or null).Return the server cipher key (or null). |
| public IvParameterSpec | Returns: the server initialization vector (or null).Return the server initialization vector (or null). |
| public SecretKey |
| clientCipherKey | back to summary |
|---|---|
| private final SecretKey clientCipherKey | |
| clientIv | back to summary |
|---|---|
private final IvParameterSpec clientIv
| |
| clientMacKey | back to summary |
|---|---|
| private final SecretKey clientMacKey | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides javax. | |
| serverCipherKey | back to summary |
|---|---|
| private final SecretKey serverCipherKey | |
| serverIv | back to summary |
|---|---|
private final IvParameterSpec serverIv
| |
| serverMacKey | back to summary |
|---|---|
| private final SecretKey serverMacKey | |
| TlsKeyMaterialSpec | back to summary |
|---|---|
| public TlsKeyMaterialSpec(SecretKey clientMacKey, SecretKey serverMacKey) Constructs a new TlsKeymaterialSpec from the client and server MAC
keys.
This call is equivalent to
| |
| TlsKeyMaterialSpec | back to summary |
|---|---|
| public TlsKeyMaterialSpec(SecretKey clientMacKey, SecretKey serverMacKey, SecretKey clientCipherKey, SecretKey serverCipherKey) Constructs a new TlsKeymaterialSpec from the client and server MAC
keys and client and server cipher keys.
This call is equivalent to
| |
| TlsKeyMaterialSpec | back to summary |
|---|---|
| public TlsKeyMaterialSpec(SecretKey clientMacKey, SecretKey serverMacKey, SecretKey clientCipherKey, IvParameterSpec clientIv, SecretKey serverCipherKey, IvParameterSpec serverIv) Constructs a new TlsKeymaterialSpec from the client and server MAC keys, client and server cipher keys, and client and server initialization vectors.
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements java. Returns
| |
| getClientCipherKey | back to summary |
|---|---|
| public SecretKey getClientCipherKey() Return the client cipher key (or null).
| |
| getClientIv | back to summary |
|---|---|
| public IvParameterSpec getClientIv() Return the client initialization vector (or null).
| |
| getClientMacKey | back to summary |
|---|---|
| public SecretKey getClientMacKey() Returns the client MAC key.
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Implements java. Returns
| |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements java. Returns
| |
| getServerCipherKey | back to summary |
|---|---|
| public SecretKey getServerCipherKey() Return the server cipher key (or null).
| |
| getServerIv | back to summary |
|---|---|
| public IvParameterSpec getServerIv() Return the server initialization vector (or null).
| |
| getServerMacKey | back to summary |
|---|---|
| public SecretKey getServerMacKey() Return the server MAC key.
| |