| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final char[] | |
| pack-priv static final int | |
| pack-priv static final byte | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ByteBuf | encodeBearerMetadata(ByteBufAllocator
the allocator, char[] ByteBufAllocator to use to create intermediate buffers as needed.the char sequence which represents BEARER token. token)Encode a Authentication CompositeMetadata payload using Bearer Authentication format |
| public static ByteBuf | encodeMetadata(ByteBufAllocator
the allocator, String ByteBufAllocator to use to create intermediate buffers as needed.the custom mime type to encode. customAuthType, ByteBuf the metadata value to encode. metadata)Encode a Authentication CompositeMetadata payload using custom authentication type |
| public static ByteBuf | encodeMetadata(ByteBufAllocator
the allocator, WellKnownAuthType ByteBufAllocator to create intermediate buffers as needed.the well-known mime type to encode. authType, ByteBuf the metadata value to encode. metadata)Encode a Authentication CompositeMetadata payload using custom authentication type |
| public static ByteBuf | encodeMetadataWithCompression(ByteBufAllocator
the allocator, String ByteBufAllocator to use to create intermediate buffers as needed.the mime type to encode, as a authType, ByteBuf String. well known mime types are
compressed.the metadata value to encode. metadata)Encode a new Authentication Metadata payload information, first verifying if the passed |
| public static ByteBuf | encodeSimpleMetadata(ByteBufAllocator
the allocator, char[] ByteBufAllocator to use to create intermediate buffers as needed.the char sequence which represents user name. username, char[] the char sequence which represents user password. password)Encode a Authentication CompositeMetadata payload using Simple Authentication format |
| public static boolean | isWellKnownAuthType(ByteBuf
byteBuf used to get information from metadata)Get the first |
| public static char[] | Returns: char[] which represents UTF-8 passwordthe given metadata to read username from. Please note, the bearerAuthMetadata)bearerAuthMetadata#readIndex should be set to the beginning of the password bytesRead all the remaining |
| public static CharSequence | readCustomAuthType(ByteBuf metadata)
Read up to 129 bytes from the given metadata in order to get the custom Auth Type |
| public static ByteBuf | readPassword(ByteBuf
the given metadata to read password from. Please note, the simpleAuthMetadata)simpleAuthMetadata#readIndex should be set to the beginning of the password bytesRead all the remaining |
| public static char[] | Returns: char[] which represents UTF-8 passwordthe given metadata to read username from. Please note, the simpleAuthMetadata)simpleAuthMetadata#readIndex should be set to the beginning of the password bytesRead all the remaining |
| public static ByteBuf | readPayload(ByteBuf
metadata to get payload from. Please note, the metadata)metadata#readIndex
should be set to the beginning of the payload bytesRead all remaining |
| public static ByteBuf | readUsername(ByteBuf
the given metadata to read username from. Please note, the simpleAuthMetadata)simpleAuthMetadata#readIndex should be set to the username length positionRead up to 65537 |
| public static char[] | Returns: char[] which represents UTF-8 usernamethe given metadata to read username from. Please note, the simpleAuthMetadata)simpleAuthMetadata#readIndex should be set to the username length byteRead up to 65537 |
| private static int | |
| public static WellKnownAuthType | Returns: Return on of the know Auth types orWellKnownAuthType#UNPARSEABLE_AUTH_TYPE if
field's value is length or unknown auth typegiven metadata buffer to read from metadata)Read first byte from the given |
| AUTH_TYPE_ID_LENGTH | back to summary |
|---|---|
| pack-priv static final int AUTH_TYPE_ID_LENGTH | |
| EMPTY_CHARS_ARRAY | back to summary |
|---|---|
| pack-priv static final char[] EMPTY_CHARS_ARRAY | |
| STREAM_METADATA_KNOWN_MASK | back to summary |
|---|---|
| pack-priv static final int STREAM_METADATA_KNOWN_MASK | |
| STREAM_METADATA_LENGTH_MASK | back to summary |
|---|---|
| pack-priv static final byte STREAM_METADATA_LENGTH_MASK | |
| USERNAME_BYTES_LENGTH | back to summary |
|---|---|
| pack-priv static final int USERNAME_BYTES_LENGTH | |
| AuthMetadataCodec | back to summary |
|---|---|
| private AuthMetadataCodec() | |
| encodeBearerMetadata | back to summary |
|---|---|
| public static ByteBuf encodeBearerMetadata(ByteBufAllocator allocator, char[] token) Encode a Authentication CompositeMetadata payload using Bearer Authentication format
| |
| encodeMetadata | back to summary |
|---|---|
| public static ByteBuf encodeMetadata(ByteBufAllocator allocator, String customAuthType, ByteBuf metadata) Encode a Authentication CompositeMetadata payload using custom authentication type
| |
| encodeMetadata | back to summary |
|---|---|
| public static ByteBuf encodeMetadata(ByteBufAllocator allocator, WellKnownAuthType authType, ByteBuf metadata) Encode a Authentication CompositeMetadata payload using custom authentication type
| |
| encodeMetadataWithCompression | back to summary |
|---|---|
| public static ByteBuf encodeMetadataWithCompression(ByteBufAllocator allocator, String authType, ByteBuf metadata) Encode a new Authentication Metadata payload information, first verifying if the passed Prefer using
| |
| encodeSimpleMetadata | back to summary |
|---|---|
| public static ByteBuf encodeSimpleMetadata(ByteBufAllocator allocator, char[] username, char[] password) Encode a Authentication CompositeMetadata payload using Simple Authentication format
| |
| isWellKnownAuthType | back to summary |
|---|---|
| public static boolean isWellKnownAuthType(ByteBuf metadata) Get the first
| |
| readBearerTokenAsCharArray | back to summary |
|---|---|
| public static char[] readBearerTokenAsCharArray(ByteBuf bearerAuthMetadata) Read all the remaining
| |
| readCustomAuthType | back to summary |
|---|---|
| public static CharSequence readCustomAuthType(ByteBuf metadata) Read up to 129 bytes from the given metadata in order to get the custom Auth Type | |
| readPassword | back to summary |
|---|---|
| public static ByteBuf readPassword(ByteBuf simpleAuthMetadata) Read all the remaining
| |
| readPasswordAsCharArray | back to summary |
|---|---|
| public static char[] readPasswordAsCharArray(ByteBuf simpleAuthMetadata) Read all the remaining
| |
| readPayload | back to summary |
|---|---|
| public static ByteBuf readPayload(ByteBuf metadata) Read all remaining
| |
| readUsername | back to summary |
|---|---|
| public static ByteBuf readUsername(ByteBuf simpleAuthMetadata) Read up to 65537
| |
| readUsernameAsCharArray | back to summary |
|---|---|
| public static char[] readUsernameAsCharArray(ByteBuf simpleAuthMetadata) Read up to 65537
| |
| readUsernameLength | back to summary |
|---|---|
| private static int readUsernameLength(ByteBuf simpleAuthMetadata) | |
| readWellKnownAuthType | back to summary |
|---|---|
| public static WellKnownAuthType readWellKnownAuthType(ByteBuf metadata) Read first byte from the given
| |