private class Authenticator.MacImpl extends Object implements Authenticator.MAC
| 限定符和类型 | 字段和说明 |
|---|---|
private Mac |
mac |
private CipherSuite.MacAlg |
macAlg |
| 限定符 | 构造器和说明 |
|---|---|
private |
MacImpl() |
private |
MacImpl(ProtocolVersion protocolVersion,
CipherSuite.MacAlg macAlg,
SecretKey key) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
compute(byte type,
ByteBuffer bb,
byte[] sequence,
boolean isSimulated)
Compute and returns the MAC for the remaining data
in this ByteBuffer.
|
CipherSuite.MacAlg |
macAlg() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeprivate final CipherSuite.MacAlg macAlg
private final Mac mac
private MacImpl()
private MacImpl(ProtocolVersion protocolVersion, CipherSuite.MacAlg macAlg, SecretKey key) throws NoSuchAlgorithmException, InvalidKeyException
public CipherSuite.MacAlg macAlg()
macAlg 在接口中 Authenticator.MACpublic byte[] compute(byte type,
ByteBuffer bb,
byte[] sequence,
boolean isSimulated)
Authenticator.MACcompute 在接口中 Authenticator.MACtype - record typebb - a ByteBuffer in which the position and limit
demarcate the data to be MAC'd.sequence - the explicit sequence number, or null if using
the implicit sequence number for the computationisSimulated - if true, simulate the MAC computationCopyright © 2023. All rights reserved.