Oracle Single Sign-On Application Developer's Guide Release 3.0.6 Part Number A86782-03 |
|
The Java package, oracle.security.sso,
contains information about how application developers can use Java classes and methods to enable web users to access partner applications by means of Oracle Single Sign-On. This chapter should be used as a reference and assumes that the reader is familiar with PL/SQL functions and procedures for using Oracle Single Sign-On.
This chapter contains these topics:
Table 4-1 oracle.security.sso.enabler
public class SSOEnabler extends java.lang.Object java.lang.Object | +--oracle.security.sso.enabler.SSOEnabler
This class implements the enabler stack of the Oracle Single Sign-On service for partner application development.
1.0
Table 4-2 SSOEnabler Member Summary
Inherited Member Summary |
---|
Methods inherited from |
|
public SSOEnabler()
Creates an Oracle Single Sign-On enabler object, with no database connection.
public SSOEnabler(java.sql.Connection p_db_conn)
Creates an Oracle Single Sign-On enabler object, witha database connection.
java.sql.Connection
public java.lang.String generateRedirect(java.lang.String p_listenerToken, java.lang.String p_requestedUrl, java.lang.String p_onCancelUrl)
Generates a redirect URL from the requested URL and the cancel URL. When a partner application wants to authenticate a user, it redirects the user (browser) to the Oracle Single Sign-On server with this URL. The requested URL string is the URL which the user wants to access. The cancel URL string is the URL to which the Oracle Single Sign-On server redirects the user when the user does not wish to authenticate at that moment.
Redirect url
SSOEnablerException
--whenthere is an error in constructing redirect url
public SSOUserInfo getSSOUserInfo(java.lang.String p_listenerToken, java.lang.String p_cookieStr, java.net.InetAddress p_clientIp)
Parses a redirect URL from the Oracle Single Sign-On server which contains user information.
SSOUserInfo
object which contains user information
SSOEnablerException
--whenthere is an error in parsing
public void setDbConnection(java.sql.Connection p_db_conn)
Initializes the Oracle Single Sign-On enabler object with a database connection.
SSOEnablerException
--when the database connection is lost
java.sql.Connection
public class SSOEnablerConfig extends java.lang.Object java.lang.Object | +--oracle.security.sso.enabler.SSOEnablerConfig
This class is used with SSOEnabler class for configuration parameters setup.
1.0
Table 4-4 SSOEnablerConfig Member Summary
Member Summary |
|
---|---|
Constructors |
|
Sets none of the properties. |
|
SSOEnablerConfig(String, String, String, String, String, String, String, String, String) |
Sets all of the properties. |
Methods |
|
Returns the encryption key. |
|
Returns the encryption mask post. |
|
Returns the encryption mask pre. |
|
Returns the listener token. |
|
Returns the login URL. |
|
Returns the site identifier. |
|
Returns the site token. |
|
Returns the URL cookie IP check. |
|
Returns the URL cookie version. |
|
Sets the encryption key. |
|
Sets the encryption mask post. |
|
Sets the encryption mask pre. |
|
Sets the listener token. |
|
Sets the login URL. |
|
Sets the site identifier. |
|
Sets the site token. |
|
Sets the URL cookie IP check. |
|
Sets the URL cookie version. |
Inherited Member Summary |
---|
Methods inherited from |
|
public SSOEnablerConfig()
Sets no properties.
public SSOEnablerConfig(java.lang.String p_listenerToken, java.lang.String p_ siteToken, java.lang.String p_siteID, java.lang.String p_loginURL, java.lang.String p_urlCookieVersion, java.lang.String p_encryptionKey, java.lang.String p_encryptionMaskPre, java.lang.String p_encryptionMaskPost, java.lang.String p_urlCookieIPCheck)
Sets all properties.
public java.lang.String getEncryptionKey()
Returns the encryption key.
The encryption key.
public java.lang.String getEncryptionMaskPost()
Returns the encryption mask post.
The encryption mask post.
public java.lang.String getEncryptionMaskPre()
Returns the encryption mask pre.
The encryption mask pre.
public java.lang.String getListnerToken()
Returns the listener token.
The listener token.
public java.lang.String getLoginUrl()
Returns the login URL.
The login URL.
public java.lang.String getSiteID()
Returns the site identifier.
The site identifier.
public java.lang.String getSiteToken()
Returns the site token.
The site token.
public java.lang.String getUrlCookieIPCheck()
Returns the URL cookie IP check.
The URL cookie IP check.
public java.lang.String getUrlCookieVersion()
Returns the URL cookie version.
The URL cookie version.
public void setEncryptionKey(java.lang.String p_encryptionKey)
Sets the encryption key.
encryptionKey
--The encryption key.
public void setEncryptionMaskPost(java.lang.String p_encryptionMaskPost)
Sets the encryption mask post.
encryptionMaskPost
--The encryption mask post.
public void setEncryptionMaskPre(java.lang.String p_encryptionMaskPre)
Sets the encryption mask pre.
encryptionMaskPre
--The encryption mask pre.
public void setListnerToken(java.lang.String p_listnerToken)
Sets the listener token.
listnerToken
--The listener token.
public void setLoginUrl(java.lang.String p_loginURL)
Sets the login URL.
loginURL
--The login URL
public void setSiteID(java.lang.String p_siteID)
Sets the site identifier.
siteID
--The site identifier
public void setSiteToken(java.lang.String p_siteToken)
Sets the site token.
siteToken
--The site token
public void setUrlCookieIPCheck(java.lang.String p_urlCookieIPCheck)
Sets the URL cookie IP check.
urlCookieIPCheck
--The URL cookie IP check
public void setUrlCookieVersion(java.lang.String p_urlCookieVersion)
Sets the URL cookie version.
urlCookieVersion
--The URL cookie version
public class SSOEnablerConfigMgr extends java.lang.Object java.lang.Object | +--oracle.security.sso.enabler.SSOEnablerConfigMgr
Implements the enabler stack of the Oracle Single Sign-On service for partner application development.
1.0
Table 4-6 SSOEnablerConfigMgr Member Summary
Inherited Member Summary |
---|
Methods inherited from |
|
public SSOEnablerConfigMgr()
Creates an Oracle Single Sign-On enabler object, with no database connection.
public SSOEnablerConfigMgr(java.sql.Connection p_db_conn)
Creates an Oracle Single Sign-On enabler object, with database connection.
java.sql.Connection
public void createEnablerConfig(SSOEnablerConfig p_configuration)
Creates configuration parameters of the SSO enabler specified by the listener token.
p_configuration
--The configuration for the SSO enabler to be added. All the members of this class must be filled in except for encryptionMaskPre
and encryptionMaskPost
, which must be empty strings ("").
SSOEnablerException--Raised when the database connection is lost, the database is not configured properly, or invalid data is passed into this procedure.
public void deleteEnablerConfig(java.lang.String p_listenerToken)
Deletes the configuration parameters of the SSO enabler specified by the listener token.
p_listenerToken
--The listener token of the SSO enabler p_configuration
that is to be deleted
SSOEnablerException--Raised when the database connection is lost, the database is not configured properly, or invalid data is passed into this procedure.
public SSOEnablerConfig getEnablerConfig(java.lang.String p_listenerToken)
Returns the configuration parameters of the SSO enabler specified by the listener token.
p_listenerToken
--The listener token of the SSO enabler p_configuration
that is to be selected
An instance of SSOEnablerConfig containing the p_configuration
of the SSO enabler specified by the listener token
SSOEnablerException--Raised when the database connection is lost, the database is not configured properly, or the listener token is invalid.
public void setDbConnection(java.sql.Connection p_db_conn)
Initializes the Oracle Single Sign-On enabler object, with a database connection.
SSOEnablerException--whenthe database connection lost
java.sql.Connection
public void setEnablerConfig(java.lang.String p_listenerToken, SSOEnablerConfig p_configuration)
Updates the configuration parameters of the SSO enabler specified by the listener token.
p_listenerToken
--The listener token of the SSO enabler p_configuration
that is to be updated
p_configuration
--The configuration for the SSO enabler to be updated. (All the members of this class must be filled in.)
SSOEnablerException--Raised when the database connection is lost, the database is not configured properly, or invalid data is passed into this procedure.
public class SSOEnablerException extends java.lang.Exception java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--oracle.security.sso.enabler.SSOEnablerException
java.io.Serializable
This class is a subclass of java.lang.Exception
1.0
Table 4-8 SSOEnablerException Member Summary
Member Summary |
|
---|---|
Constructors |
|
Constructs an |
|
Constructs an |
public SSOEnablerException()
Constructs an SSOEnablerException
object with no specified detail message.
public SSOEnablerException(java.lang.String p_str)
Constructs an SSOEnablerException
object with specified detail message.
public class SSOEnablerUtil extends java.lang.Object
java.lang.Object
|
+--
oracle.security.sso.enabler.SSOEnablerUtil
Table 4-10 SSOEnablerUtil Member Summary
Inherited Member Summary |
---|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
public SSOEnablerUtil()
Creates a utility object for application cookie baking/unbaking, with no database connection.
public SSOEnablerUtil(java.sql.Connection p_db_conn)
Creates a utility object for application cookie baking/unbaking, with a database connection.
java.sql.Connection
public java.lang.String bakeAppCookie(java.lang.String p_listenerToken, java.lang.String p_appCookie)
Bakes the input application cookie for encryption and hashing. The return string is encrypted along with the hashed application cookie.
p_listenerToken
--Listener token for the specific login server
p_appCookie--Application cookie
Baked application cookie
SSOEnablerException--whenthe database connection is lost or any other error occurs
public static java.lang.String genHtmlPostForm(java.lang.String p_ genRedirectUrl)
Generates a HTML post form to the login server URL from the generate redirect url.
p_genRedirectUrl
--generate redirect URL
html redirect url
IllegalArgumentException
--whenthe input URL is incorrect
public static java.lang.String genRedirect(java.lang.String p_redirectUrl)
Generates a HTML redirect to the specified url.
p_redirectUrl
--generate redirect url
html post form for login server
IllegalArgumentException
--whenthe input URL is incorrect
public void setDbConnection(java.sql.Connection p_db_conn)
Initializes utility object for application cookie baking/unbaking, with a database connection.
SSOEnablerException--whenthe database connection is lost
java.sql.Connection
public java.lang.String unbakeAppCookie(java.lang.String p_listenerToken, java.lang.String p_bakedAppCookie)
Unbakes the input baked application cookie. The return string is the decrypted application cookie.
p_listenerToken
--Listener token for the specific login server
p_bakedAppCookie
--Unbaked application cookie
Unbaked application cookie
SSOEnablerException--whenthe database connection is lost or any other error occurs
public class SSOUserInfo extends java.lang.Object java.lang.Object | +--oracle.security.sso.enabler.SSOUserInfo
Returns user information after parsing redirect URL from SSOEnabler
class.
1.0
Table 4-12 SSOUserInfo Member Summary
Member Summary |
|
---|---|
Methods |
|
Returns IP Address. |
|
Returns the site time stamp. |
|
Returns remaining Single Sign-On time in hours. |
|
Returns Single Sign-On user name. |
|
Returns URL requested by the user. |
Inherited Member Summary |
---|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
public java.lang.String getIPAddress()
Returns the IP Address.
public java.sql.Date getSiteTimeStamp()
Returns the site time stamp.
public int getSSOTimeRemaining()
Returns remaining Single Sign-On time in hours.
public java.lang.String getSSOUserName()
Returns Single Sign-On user name.
public java.lang.String getUrlRequested()
Returns URL requested by the user.
|
Copyright © 1996-2000 Oracle Corporation. All Rights Reserved. |
|