public final class TOUHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
private static Logger |
LOGGER
Class logger.
|
| Modifier | Constructor and Description |
|---|---|
private |
TOUHelper()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
findUserId(String userIdAttribute,
Collection<IdPAttribute> releasedAttributes)
Searches the user identification attribute in the collection of released attributes and returns its value as user
id.
|
static String |
getRelyingParty(TermsOfUseContext context)
Retrieves the entityId of the relying party.
|
static HttpServletRequest |
getRequest(TermsOfUseContext touContext)
Gets the HTTP request from the terms of use context.
|
static HttpServletResponse |
getResponse(TermsOfUseContext touContext)
Gets the HTTP response from the terms of use context.
|
static TermsOfUseContext |
getTermsOfUseContext(HttpServletRequest request)
Gets the terms of use context from the HTTP request.
|
static String |
getToUFingerprint(TOU tou)
Gets the terms of use fingerprint.
|
static TOU |
getToUForRelyingParty(Map<String,TOU> touMap,
String entityId)
Retrieves the mapped
TOU for a specific relying party. |
static Collection<IdPAttribute> |
getUserAttributes(TermsOfUseContext context)
Retrieves the entityId of the relying party.
|
private static final Logger LOGGER
public static String getRelyingParty(TermsOfUseContext context)
context - The current terms of use context.public static Collection<IdPAttribute> getUserAttributes(TermsOfUseContext context)
context - The current terms of use context.public static final String findUserId(String userIdAttribute, Collection<IdPAttribute> releasedAttributes)
userIdAttribute - The id of the attribute which is used as user identification.releasedAttributes - The collection of released attributes.public static TOU getToUForRelyingParty(Map<String,TOU> touMap, String entityId)
TOU for a specific relying party.touMap - The relying party / terms of use map.entityId - The relying party id.TOU for this relying party id or null.public static String getToUFingerprint(TOU tou)
tou - The TOU.public static TermsOfUseContext getTermsOfUseContext(HttpServletRequest request)
request - The HTTP requestpublic static HttpServletRequest getRequest(TermsOfUseContext touContext)
touContext - The terms of use context.public static HttpServletResponse getResponse(TermsOfUseContext touContext)
touContext - The term of use context.Copyright © 1999–2014. All rights reserved.