Package net.shibboleth.idp.consent
Class Consent
- All Implemented Interfaces:
Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
Represents consent.
A consent object consists of an identifier, a value (usually a hash) representing the thing being consented to, and a
boolean which indicates whether consent is approved or denied.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue()
Get the consent value.int
hashCode()
boolean
Whether consent is approved or denied.void
setApproved
(boolean flag) Set whether consent is approved.void
Set the consent value.toString()
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Field Details
-
WILDCARD
Wildcard used to represent consent to any ID or value.- See Also:
-
value
Consent value. -
approved
@Nullable private boolean approvedWhether consent is approved.
-
-
Constructor Details
-
Consent
public Consent()
-
-
Method Details
-
getValue
Get the consent value.- Returns:
- the consent value
-
isApproved
@Nullable public boolean isApproved()Whether consent is approved or denied.- Returns:
- true if consent is approved
-
setValue
Set the consent value.- Parameters:
val
- the consent value
-
setApproved
public void setApproved(boolean flag) Set whether consent is approved.- Parameters:
flag
- true if consent is approved
-
equals
-
hashCode
public int hashCode() -
toString
-