public final class ConsentContext
extends org.opensaml.messaging.context.BaseContext
| Modifier and Type | Class and Description |
|---|---|
static class |
ConsentContext.Consent
Indicates the result of the consent engine's attempt to gain user consent.
|
| Modifier and Type | Field and Description |
|---|---|
private ConsentContext.Consent |
consentDecision
The decision determined by the consent engine.
|
private Map<String,IdPAttribute> |
consentedAttributes
The attributes the consent engine has determined may be released.
|
private Map<String,IdPAttribute> |
userAttributes
Attributes about the user that are to be released with the user's consent.
|
| Constructor and Description |
|---|
ConsentContext(Map<String,IdPAttribute> attributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ConsentContext.Consent |
getConsentDecision()
Gets the consent decision established by the user.
|
Map<String,IdPAttribute> |
getConsentedIdPAttributes()
Gets the attributes that may be released with the user's consent.
|
Map<String,IdPAttribute> |
getUserIdPAttributes()
Gets an unmodifiable map representing the information to be released about the user.
|
void |
setConsentDecision(ConsentContext.Consent decision)
Sets the consent decision established by the user.
|
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParentprivate Map<String,IdPAttribute> userAttributes
private ConsentContext.Consent consentDecision
private Map<String,IdPAttribute> consentedAttributes
public ConsentContext(Map<String,IdPAttribute> attributes)
attributes - attributes about the user that are to be released with the user's consent, defensively copiedpublic ConsentContext.Consent getConsentDecision()
public void setConsentDecision(ConsentContext.Consent decision)
decision - consent decision established by the userpublic Map<String,IdPAttribute> getUserIdPAttributes()
public Map<String,IdPAttribute> getConsentedIdPAttributes()
Copyright © 1999–2014. All rights reserved.