|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.shibboleth.wayf.plugins.provider.SamlCookiePlugin.SamlIdPCookie
public final class SamlCookiePlugin.SamlIdPCookie
Class to abstract away the saml cookie for us.
| Field Summary | |
|---|---|
private String |
domain
The associated domain. |
private List<String> |
idPList
The IdPs. |
private HttpServletRequest |
req
The associated request. |
private HttpServletResponse |
res
The associated response. |
| Constructor Summary | |
|---|---|
private |
SamlCookiePlugin.SamlIdPCookie(HttpServletRequest request,
HttpServletResponse response,
String domainName)
Create a SamlCookie with no data inside. |
private |
SamlCookiePlugin.SamlIdPCookie(String data,
HttpServletRequest request,
HttpServletResponse response,
String domainName)
Constructs a SamlIdPCookie from the provided string (which is the raw data. |
| Method Summary | |
|---|---|
private void |
addIdPName(String idPName,
int expiration)
Add the specified Shibboleth IdP Name to the cookie list or move to the front and then write it back. |
void |
deleteIdPName(String origin,
int expiration)
Remove origin from the cachedata and write it back. |
List<String> |
getIdPList()
Return the list of Idps for this cookie. |
private void |
writeCookie(int expiration)
Write back the cookie. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final HttpServletRequest req
private final HttpServletResponse res
private final String domain
private final List<String> idPList
| Constructor Detail |
|---|
private SamlCookiePlugin.SamlIdPCookie(String data,
HttpServletRequest request,
HttpServletResponse response,
String domainName)
SamlIdPCookie from the provided string (which is the raw data.
data - the information read from the cookie.request - Describes the current request.response - Describes the current response.domainName - - if non null the domain for any *created* cookie.
private SamlCookiePlugin.SamlIdPCookie(HttpServletRequest request,
HttpServletResponse response,
String domainName)
domainName - - if non null, the domain of the new cookierequest - Describes the current request.response - Describes the current response.| Method Detail |
|---|
private void addIdPName(String idPName,
int expiration)
idPName - - The name to be addedexpiration - - The expiration of the cookie or zero if it is to be unchanged
public void deleteIdPName(String origin,
int expiration)
origin - what to remove.expiration - How long it will live.private void writeCookie(int expiration)
expiration - How long it will livepublic List<String> getIdPList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||