|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.webbrowser.WOCAuthenticator
public final class WOCAuthenticator
A service API that can authenticate Oracle Web Accounts.
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.
Nested Class Summary | |
---|---|
static class |
WOCAuthenticator.AuthenticationToken
An opaque authentication token. |
Constructor Summary | |
---|---|
WOCAuthenticator(java.net.URL contentUrl)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WOCAuthenticator(java.net.URL contentUrl)
Method Detail |
---|
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.IOException
public 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.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |