Interface AuthPacket
@Immutable @DoNotImplement public interface AuthPacket
Represents an AUTH packet.
- Since:
- 4.3.0, CE 2020.1
-
Method Summary
Modifier and Type Method Description @NotNull Optional<@Immutable ByteBuffer>getAuthenticationData()The optional authentication data of the AUTH packet.@NotNull Optional<byte[]>getAuthenticationDataAsArray()The optional authentication data of the AUTH packet as a byte array.@NotNull StringgetAuthenticationMethod()The authentication method of the AUTH packet.@NotNull AuthReasonCodegetReasonCode()The reason code of the AUTH packet.@NotNull Optional<String>getReasonString()The optional reason string of the AUTH packet.@NotNull UserPropertiesgetUserProperties()The user properties of the AUTH packet.
-
Method Details
-
getAuthenticationMethod
The authentication method of the AUTH packet.- Returns:
- The authentication method of the AUTH packet.
- Since:
- 4.3.0, CE 2020.1
-
getAuthenticationData
The optional authentication data of the AUTH packet.The ByteBuffer returned by this method is
read onlyand will throw aReadOnlyBufferExceptionif handled incorrectly.- Returns:
- An
Optionalcontaining the authentication data if present. - Since:
- 4.3.0, CE 2020.1
-
getAuthenticationDataAsArray
The optional authentication data of the AUTH packet as a byte array.- Returns:
- An
Optionalcontaining the authentication data if present. - Since:
- 4.3.0, CE 2020.1
-
getReasonCode
The reason code of the AUTH packet.- Returns:
- The reason code of the AUTH packet.
- Since:
- 4.3.0, CE 2020.1
-
getReasonString
The optional reason string of the AUTH packet.- Returns:
- An
Optionalcontaining the reason string if present. - Since:
- 4.3.0, CE 2020.1
-
getUserProperties
The user properties of the AUTH packet.- Returns:
- The user properties of the AUTH packet.
- Since:
- 4.3.0, CE 2020.1
-