| Package | Description | 
|---|---|
| com.devexperts.auth | |
| com.devexperts.io | 
 Provides input/output utility classes. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static AuthToken | 
AuthToken.createBasicToken(String userPassword)
Constructs an  
AuthToken with the specified username and password per RFC2617. | 
static AuthToken | 
AuthToken.createBasicToken(String user,
                String password)
Constructs an  
AuthToken with the specified username and password per RFC2617. | 
static AuthToken | 
AuthToken.createBasicTokenOrNull(String user,
                      String password)
Constructs an  
AuthToken with the specified username and password per RFC2617. | 
static AuthToken | 
AuthToken.createBearerToken(String token)
Constructs an  
AuthToken with the specified bearer token per RFC6750. | 
static AuthToken | 
AuthToken.createBearerTokenOrNull(String token)
Constructs an  
AuthToken with the specified bearer token per RFC6750. | 
static AuthToken | 
AuthToken.createCustomToken(String scheme,
                 String value)
Constructs an  
AuthToken with a custom scheme and value. | 
static AuthToken | 
AuthToken.valueOf(String string)
Constructs an  
AuthToken from the specified string. | 
| Modifier and Type | Method and Description | 
|---|---|
static long | 
URLInputStream.getLastModified(URL url,
               AuthToken token)
Returns last modification time for specified URL with specified credentials. 
 | 
static URLConnection | 
URLInputStream.openConnection(URL url,
              AuthToken token)
Opens  
URLConnection for specified URL with specified credentials. | 
static byte[] | 
URLInputStream.readBytes(URL url,
         AuthToken token)
Reads content for specified URL with specified credentials and returns it as a byte array. 
 | 
| Constructor and Description | 
|---|
URLInputStream(URL url,
              AuthToken token,
              long ifModifiedSince)
Creates a new  
URLInputStream instance for specified URL with specified credentials
 and specified If-Modified-Since request parameter. | 
Copyright © 2002–2025 Devexperts LLC. All rights reserved.