public class ConsentEngineImpl extends Object implements ConsentEngine
ConsentEngine.| Modifier and Type | Field and Description |
|---|---|
private boolean |
alwaysRequireConsent
Determines if user consent is required always.
|
private Collection<String> |
attributeBlacklist
A collection of attribute ids which are blacklisted.
|
private Logger |
logger
Class logger.
|
private Collection<String> |
relyingPartyWhiteBlackList
A collection of relying party ids which are white- or blacklisted.
|
private boolean |
relyingPartyWhiteBlackListIsBlacklist
Whether the relyingPartyWhiteBlackList is treated as blacklist or not (whitelist).
|
private Storage |
storage
The
Storage instance which is used. |
private String |
userIdAttribute
A attribute id which is used for unique user identification.
|
| Constructor and Description |
|---|
ConsentEngineImpl() |
| Modifier and Type | Method and Description |
|---|---|
private User |
createUser(String userId,
String relyingPartyId)
Creates a user and attaches her the already given attribute release consents for a specific relying party.
|
void |
determineConsent(ConsentContext consentContext) |
private void |
showAttributeReleaseView(ConsentContext consentContext,
User user,
String relyingPartyId,
Collection<net.shibboleth.idp.attribute.IdPAttribute> attributes)
Forwards to the attribute release view.
|
private final Logger logger
private Collection<String> relyingPartyWhiteBlackList
private boolean relyingPartyWhiteBlackListIsBlacklist
private Collection<String> attributeBlacklist
private String userIdAttribute
private boolean alwaysRequireConsent
public void determineConsent(ConsentContext consentContext) throws ConsentException
determineConsent in interface ConsentEngineConsentExceptionprivate void showAttributeReleaseView(ConsentContext consentContext, User user, String relyingPartyId, Collection<net.shibboleth.idp.attribute.IdPAttribute> attributes)
consentContext - The ConsentContext.user - The current User.relyingPartyId - The relying party id.attributes - A collection of attributes.private User createUser(String userId, String relyingPartyId)
userId - The user id.relyingPartyId - The relying party id.User with attached attribute releases for this relying party.Copyright © 1999–2014. All rights reserved.