@Deprecated public class TlsKeyMaterialSpec extends Object implements KeySpec, SecretKey
Instances of this class are returned by the generateKey()
method of KeyGenerators of the type "TlsKeyMaterial".
Instances of this class are immutable.
| 限定符和类型 | 字段和说明 |
|---|---|
private SecretKey |
clientCipherKey
已过时。
|
private IvParameterSpec |
clientIv
已过时。
|
private SecretKey |
clientMacKey
已过时。
|
(专用程序包) static long |
serialVersionUID
已过时。
|
private SecretKey |
serverCipherKey
已过时。
|
private IvParameterSpec |
serverIv
已过时。
|
private SecretKey |
serverMacKey
已过时。
|
| 构造器和说明 |
|---|
TlsKeyMaterialSpec(SecretKey clientMacKey,
SecretKey serverMacKey)
已过时。
Constructs a new TlsKeymaterialSpec from the client and server MAC
keys.
|
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.
|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAlgorithm()
已过时。
Returns
TlsKeyMaterial. |
SecretKey |
getClientCipherKey()
已过时。
Return the client cipher key (or null).
|
IvParameterSpec |
getClientIv()
已过时。
Return the client initialization vector (or null).
|
SecretKey |
getClientMacKey()
已过时。
Returns the client MAC key.
|
byte[] |
getEncoded()
已过时。
Returns
null because keys of this type have no encoding. |
String |
getFormat()
已过时。
Returns
null because keys of this type have no encoding. |
SecretKey |
getServerCipherKey()
已过时。
Return the server cipher key (or null).
|
IvParameterSpec |
getServerIv()
已过时。
Return the server initialization vector (or null).
|
SecretKey |
getServerMacKey()
已过时。
Return the server MAC key.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedstatic final long serialVersionUID
private final SecretKey clientMacKey
private final SecretKey serverMacKey
private final SecretKey clientCipherKey
private final SecretKey serverCipherKey
private final IvParameterSpec clientIv
private final IvParameterSpec serverIv
public TlsKeyMaterialSpec(SecretKey clientMacKey, SecretKey serverMacKey)
new TlsKeymaterialSpec(clientMacKey, serverMacKey,
null, null, null, null).clientMacKey - the client MAC key (or null)serverMacKey - the server MAC key (or null)public TlsKeyMaterialSpec(SecretKey clientMacKey, SecretKey serverMacKey, SecretKey clientCipherKey, SecretKey serverCipherKey)
new TlsKeymaterialSpec(clientMacKey, serverMacKey,
clientCipherKey, serverCipherKey, null, null).clientMacKey - the client MAC key (or null)serverMacKey - the server MAC key (or null)clientCipherKey - the client cipher key (or null)serverCipherKey - the server cipher key (or null)public TlsKeyMaterialSpec(SecretKey clientMacKey, SecretKey serverMacKey, SecretKey clientCipherKey, IvParameterSpec clientIv, SecretKey serverCipherKey, IvParameterSpec serverIv)
clientMacKey - the client MAC key (or null)serverMacKey - the server MAC key (or null)clientCipherKey - the client cipher key (or null)clientIv - the client initialization vector (or null)serverCipherKey - the server cipher key (or null)serverIv - the server initialization vector (or null)public String getAlgorithm()
TlsKeyMaterial.getAlgorithm 在接口中 KeyTlsKeyMaterial.public String getFormat()
null because keys of this type have no encoding.public byte[] getEncoded()
null because keys of this type have no encoding.getEncoded 在接口中 Keynull because keys of this type have no encoding.public SecretKey getClientMacKey()
public SecretKey getServerMacKey()
public SecretKey getClientCipherKey()
public IvParameterSpec getClientIv()
public SecretKey getServerCipherKey()
public IvParameterSpec getServerIv()
Copyright © 2023. All rights reserved.