public final class WOCAuthenticator
extends java.lang.Object
 The logIn(PasswordAuthentication) method attempts to authenticate
 to an authentication URL. By default, it uses the standard
 profile.oracle.com authentication handler. However, you can specify a
 different authentication server url using setAuthenticationServerUrl(URL).
 If authentication is successful, logIn(PasswordAuthentication)
 returns an WOCAuthenticator.AuthenticationToken. This opaque token can be passed
 in to the endorse(URLConnection,AuthenticationToken) API to
 include authentication credentials with any subsequent URL connection.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
WOCAuthenticator.AuthenticationToken
An opaque authentication token. 
 | 
| Constructor and Description | 
|---|
WOCAuthenticator(java.net.URL contentUrl)  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
endorse(java.net.URLConnection conn,
       WOCAuthenticator.AuthenticationToken token)
Endorse the specified URL connection with authentication information. 
 | 
java.net.PasswordAuthentication | 
getRememberedAuthentication()
Retrieve a remembered authentication from preferences. 
 | 
WOCAuthenticator.AuthenticationToken | 
logIn(java.net.PasswordAuthentication credentials)
Attempt to log in to an Oracle Web Account. 
 | 
void | 
setAuthenticationServerUrl(java.net.URL url)
Sets the URL to use for authentication. 
 | 
public void setAuthenticationServerUrl(java.net.URL url)
url - the URL of the server to use for authentication. Must not be
    null.public java.net.PasswordAuthentication getRememberedAuthentication()
OTNAuthPanel to
 prompt for a PasswordAuthentication if:
 public WOCAuthenticator.AuthenticationToken logIn(java.net.PasswordAuthentication credentials) throws java.io.IOException
credentials - the user name and password to authenticate with.
    Must not be null.#endorse( HttpURLConnection, AuthenticationToken ).java.io.IOExceptionpublic static void endorse(java.net.URLConnection conn,
                           WOCAuthenticator.AuthenticationToken token)
conn - a connection to endorse with connection information. Must
    not be null.token - an authentication token, must not be null.