|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iplanet.sso.SSOTokenManager
The class SSOTokenManager
is a final
class
that provides interfaces to create, get, and validate SSOToken
s.
It is a
singleton class; an instance of this class can be obtained by
calling SSOTokenManager.getInstance()
.
Having obtained an instance of SSOTokenManager
,
its methods can be called to create SSOToken
, get
SSOToken
given the SSOTokenID
in string
format, and to validate SSOToken
s.
Field Summary | |
static com.iplanet.services.util.Debug |
debug
|
Method Summary | |
SSOToken |
createSSOToken(HttpServletRequest request)
Creates an SSOToken from HttpServletRequest |
SSOToken |
createSSOToken(java.security.Principal user,
java.lang.String password)
Creates an SSOToken after authenticating the principal with the given password. |
SSOToken |
createSSOToken(java.lang.String tokenId)
Creates an SSOToken from the SSOtoken id. |
SSOToken |
createSSOToken(java.lang.String tokenId,
java.lang.String clientIP)
Creates an SSOToken from the SSOtoken id. |
void |
destroyToken(SSOToken token)
Destroys an SSOToken. |
static SSOTokenManager |
getInstance()
Gets the singleton instance of SSOTokenManager. |
boolean |
isValidToken(SSOToken token)
Checks if an SSOToken is valid or not. |
void |
refreshSession(SSOToken token)
Refresh the Session corresponding to the SSOToken from the Session Server. |
void |
validateToken(SSOToken token)
Checks if the SSOToken is valid. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static com.iplanet.services.util.Debug debug
Method Detail |
public static SSOTokenManager getInstance() throws SSOException
SSOException
- if unable to get the singleton SSOTokenManager
instancepublic SSOToken createSSOToken(HttpServletRequest request) throws java.lang.UnsupportedOperationException, SSOException
HttpServletRequest
- An
- SSOException is thrown if the SSOToken cannot be
created.public SSOToken createSSOToken(java.security.Principal user, java.lang.String password) throws java.lang.UnsupportedOperationException, SSOException
Principal
- representing a user or servicePassword
- An
- SSOException is thrown if the SSOToken cannot be
created.public SSOToken createSSOToken(java.lang.String tokenId) throws java.lang.UnsupportedOperationException, SSOException
String
- Tokenid of the SSOTokenan
- SSOException is thrown if the SSOToken cannot be
created.
Note:-If you want to do Client's IP address validation for the SSOToken
then use creatSSOToken(String tokenid, String ClientIP) OR
createSSOToken(HttpServletRequest request).public SSOToken createSSOToken(java.lang.String tokenId, java.lang.String clientIP) throws java.lang.UnsupportedOperationException, SSOException
String
- Tokenid of the SSOTokenString
- Client IP address. This must be the IP address of the
client/user who is accessing the application.an
- SSOException is thrown if the SSOToken cannot be
created.public boolean isValidToken(SSOToken token)
token
- The SSOToken object to be validated.public void validateToken(SSOToken token) throws SSOException
token
- The SSOToken object to be validated.an
- SSOException if the SSOToken is not valid.public void destroyToken(SSOToken token) throws SSOException
token
- The SSOToken object to be destroyed.public void refreshSession(SSOToken token) throws SSOException
ssoToken
- SSOToken
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |