Package org.glassfish.tyrus.client.auth
Class Credentials
java.lang.Object
org.glassfish.tyrus.client.auth.Credentials
Credentials can be used when configuring authentication properties used during client handshake.
- Author:
- Ondrej Kosatka
- See Also:
-
Constructor Summary
ConstructorDescriptionCredentials
(String username, byte[] password) Create new credentials.Credentials
(String username, String password) Create new credentials. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get the password as byte array.Get the username.toString()
-
Constructor Details
-
Credentials
Create new credentials.- Parameters:
username
- Username. Cannot benull
.password
- Password as byte array. Cannot benull
.
-
Credentials
Create new credentials.- Parameters:
username
- Username. Cannot benull
.password
- Password. Cannot benull
.
-
-
Method Details