Class HttpAuthenticationFilter.Credentials
java.lang.Object
org.glassfish.jersey.client.authentication.HttpAuthenticationFilter.Credentials
- Enclosing class:
HttpAuthenticationFilter
Credentials (username + password).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCredentials
(String username, byte[] password) Create a new credentials from username and password as byte array.Credentials
(String username, String password) Create a new credentials from username and password asString
. -
Method Summary
Modifier and TypeMethodDescription(package private) byte[]
Return password as byte array.(package private) String
Return username.
-
Field Details
-
username
-
password
private final byte[] password
-
-
Constructor Details
-
Credentials
Credentials(String username, byte[] password) Create a new credentials from username and password as byte array.- Parameters:
username
- Username.password
- Password as byte array.
-
Credentials
Create a new credentials from username and password asString
.- Parameters:
username
- Username.password
-String
password.
-
-
Method Details
-
getUsername
String getUsername()Return username.- Returns:
- username.
-
getPassword
byte[] getPassword()Return password as byte array.- Returns:
- Password string in byte array representation.
-