oracle.security.sso.enabler
Class SSOEnablerUtil
java.lang.Object
|
+--oracle.security.sso.enabler.SSOEnablerUtil
- public class SSOEnablerUtil
- extends java.lang.Object
|
Constructor Summary |
SSOEnablerUtil()
Creates a utility object for application cookie baking/unbaking,
with no database connection |
SSOEnablerUtil(java.sql.Connection p_db_conn)
Creates a utility object for application cookie baking/unbaking,
with database connection |
|
Method Summary |
java.lang.String |
bakeAppCookie(java.lang.String p_listenerToken,
java.lang.String p_appCookie)
This method will bake the input application cookie for encryption and hashing
The return string will be encrypted along with hashed application cookie |
static java.lang.String |
genHtmlPostForm(java.lang.String p_genRedirectUrl)
This method will generate a html post form to the login server url
from generate redirect url
|
static java.lang.String |
genRedirect(java.lang.String p_redirectUrl)
This method will generate a html redirect to the specified url
|
void |
setDbConnection(java.sql.Connection p_db_conn)
Initializes utility object for application cookie baking/unbaking,
with a database connection |
java.lang.String |
unbakeAppCookie(java.lang.String p_listenerToken,
java.lang.String p_bakedAppCookie)
This method will unbake the input baked application cookie
The return string will be decrypted application cookie |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SSOEnablerUtil
public SSOEnablerUtil()
- Creates a utility object for application cookie baking/unbaking,
with no database connection
SSOEnablerUtil
public SSOEnablerUtil(java.sql.Connection p_db_conn)
- Creates a utility object for application cookie baking/unbaking,
with database connection
- See Also:
Connection
setDbConnection
public void setDbConnection(java.sql.Connection p_db_conn)
throws SSOEnablerException
- Initializes utility object for application cookie baking/unbaking,
with a database connection
- Throws:
- SSOEnablerException - if the database connection lost
- See Also:
Connection
bakeAppCookie
public java.lang.String bakeAppCookie(java.lang.String p_listenerToken,
java.lang.String p_appCookie)
throws SSOEnablerException
- This method will bake the input application cookie for encryption and hashing
The return string will be encrypted along with hashed application cookie
- Parameters:
p_listenerToken - Listener token for the specific login serverp_appCookie - Application cookie- Returns:
- Baked application cookie
- Throws:
- SSOEnablerException - if the database connection lost or any other error occurs
unbakeAppCookie
public java.lang.String unbakeAppCookie(java.lang.String p_listenerToken,
java.lang.String p_bakedAppCookie)
throws SSOEnablerException
- This method will unbake the input baked application cookie
The return string will be decrypted application cookie
- Parameters:
p_listenerToken - Listener token for the specific login serverp_bakedAppCookie - Unbaked application cookie- Returns:
- Unbaked application cookie
- Throws:
- SSOEnablerException - if the database connection is lost or any other error occurs
genHtmlPostForm
public static java.lang.String genHtmlPostForm(java.lang.String p_genRedirectUrl)
throws SSOEnablerException
- This method will generate a html post form to the login server url
from generate redirect url
- Parameters:
p_genRedirectUrl - generate redirect url- Returns:
- html redirect url
- Throws:
- java.lang.IllegalArgumentException - if the input url is incorrect
genRedirect
public static java.lang.String genRedirect(java.lang.String p_redirectUrl)
throws SSOEnablerException
- This method will generate a html redirect to the specified url
- Parameters:
p_redirectUrl - generate redirect url- Returns:
- html post form for login server
- Throws:
- java.lang.IllegalArgumentException - if the input url is incorrect