protected static class BasicAuthenticator.BasicCredentials extends Object
Constructor and Description |
---|
BasicAuthenticator.BasicCredentials(ByteChunk input)
Parse the HTTP Authorization header for BASIC authentication
as per RFC 2617 section 2, and the Base64 encoded credentials
as per RFC 2045 section 6.8.
|
public BasicAuthenticator.BasicCredentials(ByteChunk input) throws IllegalArgumentException
input
- The header value to parse in-placeIllegalArgumentException
- If the header does not conform
to RFC 2617public String getUsername()
null
, but can be empty.public String getPassword()
null
if no password was found in the credentials.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.