|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.wem.sso.SSOSession
public class SSOSession
Single Sign session. This class is the single entry point for the Single Sign On functionality in WEM. It exposes numerous methods are used in different deployment scenarios to perform login request or to retrieve current assertion (object describing current user). See documentation for individual method for details.
Method Summary | |
---|---|
SSOAssertion |
getAssertion()
If the current application is protected by SSO filter, this method will return the assertion object describing the current logged in user. |
java.lang.String |
getMultiTicket()
If the current application is protected by SSO filter, use this method to get a ticket, which could be used to perform REST calls from Java code. |
java.lang.String |
getMultiTicket(java.lang.String username,
java.lang.String password)
Use this method when the current application is not protected by SSO filter and the authenticated REST call should be performed. |
SSOValidator |
getMultiticketValidator()
Get the interface address for the multi-ticket validator. |
SSOValidator |
getProxyTicketValidator(javax.servlet.http.HttpServletRequest request,
java.lang.Object pgt)
|
java.lang.String |
getSignoutUrl()
Returns URL, which could be used to perform Single Sign Out. |
java.lang.String |
getSignoutUrl(java.lang.String callbackUrl)
Returns URL, which could be used to perform Single Sign Out. |
java.lang.String |
getTicket(java.lang.String service)
If the current application is protected by SSO filter, use this method to generate a ticket, which could be used to perform REST calls from Java code. |
java.lang.String |
getTicket(java.lang.String service,
java.lang.String username,
java.lang.String password)
Use this method when the current application is not protected by SSO filter and the authenticated REST call should be performed. |
SSOValidator |
getTicketValidator()
Get the interface address for the ticket validator. |
boolean |
isProxyTickets()
Determines whether proxying feature is turned on or off. |
boolean |
isUseMultiTickets()
Determines whether support for multi tickets is enabled. |
SSOAssertion |
validate(SSOValidator validator,
java.lang.String ticket,
java.lang.String service)
Given a validator interface address, validate the ticket for the related service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public SSOAssertion getAssertion() throws SSOException
SSOException
- if processing error occurs.public java.lang.String getTicket(java.lang.String service) throws SSOException
SSOException
is thrown. In such a case
SSOSession.getMultiTicket()
method should be used instead.
The resulting ticket must be acquired per each REST resource URL
and could only be used once.
It's up to an application developer to decide to use either 'ticket' or 'multiticket' parameter,
when calling REST resource URL.
service
- REST resource URL for which to generate a ticket.
SSOException
- if any error occurs during the ticket generation phase.public java.lang.String getMultiTicket() throws SSOException
SSOException
- if any error occurs during the ticket generation phase.public java.lang.String getTicket(java.lang.String service, java.lang.String username, java.lang.String password) throws SSOException
service
- REST resource URL for which to generate a ticket.username
- user name.password
- password.
SSOException
- if any error occurs during the ticket generation phase.public java.lang.String getMultiTicket(java.lang.String username, java.lang.String password) throws SSOException
username
- user name.password
- password.
SSOException
- if any error occurs during the ticket generation phase.public java.lang.String getSignoutUrl() throws SSOException
SSOException
public java.lang.String getSignoutUrl(java.lang.String callbackUrl) throws SSOException
callbackUrl
- URL where to redirect to upon sign out completion.
SSOException
public boolean isUseMultiTickets() throws SSOException
SSOException
public boolean isProxyTickets() throws SSOException
SSOException
public SSOValidator getProxyTicketValidator(javax.servlet.http.HttpServletRequest request, java.lang.Object pgt) throws SSOException
SSOException
public SSOValidator getTicketValidator() throws SSOException
SSOException
public SSOValidator getMultiticketValidator() throws SSOException
SSOException
public SSOAssertion validate(SSOValidator validator, java.lang.String ticket, java.lang.String service) throws SSOException
SSOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |