APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.security.ssl

pack-priv abstract Class Authenticator

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.ssl.Authenticator.SSLAuthenticator, sun.security.ssl.Authenticator.DTLSAuthenticator
Imports
java.nio.ByteBuffer, java.security.InvalidKeyException, .NoSuchAlgorithmException, java.util.Arrays, javax.crypto.Mac, .SecretKey, sun.security.ssl.CipherSuite.MacAlg

This class represents an SSL/TLS/DTLS message authentication token, which encapsulates a sequence number and ensures that attempts to delete or reorder messages can be detected.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class
private static class
pack-priv static interface
private class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
protected final byte[]

Constructor Summary

AccessConstructor and Description
private
Authenticator(byte[] block)

Method Summary

Modifier and TypeMethod and Description
pack-priv byte[]

Returns:

the byte array of the current message authentication information
acquireAuthenticationBytes
(byte
the record type
type
,
int
the fragment of the record
length
,
byte[]
the explicit sequence number of the record
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.

pack-priv final void
increaseSequenceNumber()

Increase the sequence number.

pack-priv static Authenticator
pack-priv static Authenticator
pack-priv abstract boolean

Returns:

true if the sequence number is huge enough to renew
seqNumIsHuge
()

Checks whether the sequence number close to renew.

pack-priv abstract boolean

Returns:

true if the sequence number is close to wrap
seqNumOverflow
()

Checks whether the sequence number is close to wrap.

pack-priv final byte[]

Returns:

the byte array of the current sequence number
sequenceNumber
()

Gets the current sequence number, including the epoch number for DTLS protocols.

pack-priv void
setEpochNumber(int epoch)

Sets the epoch number (only apply to DTLS protocols).

pack-priv static final long
toLong(byte[] recordEnS)

pack-priv static Authenticator
valueOf(ProtocolVersion protocolVersion)

Constructs the message authentication token for the specified SSL/TLS protocol.

pack-priv static <T extends Authenticator & Authenticator.MAC> T
valueOf(ProtocolVersion protocolVersion, CipherSuite.MacAlg macAlg, SecretKey key)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait