abstract class Authenticator extends Object
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
Authenticator.GMTLSAuthenticator |
private static class |
Authenticator.GMTLSMac |
(专用程序包) static interface |
Authenticator.MAC |
private class |
Authenticator.MacImpl |
private static class |
Authenticator.SSL30Authenticator |
private static class |
Authenticator.SSL30Mac |
private static class |
Authenticator.SSLAuthenticator |
private static class |
Authenticator.SSLNullAuthenticator |
private static class |
Authenticator.SSLNullMac |
private static class |
Authenticator.TLS10Authenticator |
private static class |
Authenticator.TLS10Mac |
private static class |
Authenticator.TLS13Authenticator |
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
block |
| 限定符 | 构造器和说明 |
|---|---|
private |
Authenticator(byte[] block) |
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) byte[] |
acquireAuthenticationBytes(byte type,
int length,
byte[] sequence)
Acquires the current message authentication information with the
specified record type and fragment length, and then increases the
sequence number if using implicit sequence number.
|
(专用程序包) void |
increaseSequenceNumber()
Increase the sequence number.
|
(专用程序包) static Authenticator |
nullTlsMac() |
(专用程序包) abstract boolean |
seqNumIsHuge()
Checks whether the sequence number close to renew.
|
(专用程序包) abstract boolean |
seqNumOverflow()
Checks whether the sequence number is close to wrap.
|
(专用程序包) byte[] |
sequenceNumber()
Gets the current sequence number.
|
(专用程序包) static long |
toLong(byte[] recordEnS) |
(专用程序包) static Authenticator |
valueOf(ProtocolVersion protocolVersion)
Constructs the message authentication token for the specified
SSL/TLS protocol.
|
(专用程序包) static <T extends Authenticator & Authenticator.MAC> |
valueOf(ProtocolVersion protocolVersion,
CipherSuite.MacAlg macAlg,
SecretKey key) |
static Authenticator valueOf(ProtocolVersion protocolVersion)
static <T extends Authenticator & Authenticator.MAC> T valueOf(ProtocolVersion protocolVersion, CipherSuite.MacAlg macAlg, SecretKey key) throws NoSuchAlgorithmException, InvalidKeyException
static Authenticator nullTlsMac()
abstract boolean seqNumOverflow()
abstract boolean seqNumIsHuge()
final byte[] sequenceNumber()
final void increaseSequenceNumber()
byte[] acquireAuthenticationBytes(byte type,
int length,
byte[] sequence)
type - the record typelength - the fragment of the recordsequence - the explicit sequence number of the recordstatic final long toLong(byte[] recordEnS)
Copyright © 2023. All rights reserved.