Package net.shibboleth.idp.consent
Class Consent
- All Implemented Interfaces:
Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
public class Consent extends AbstractIdentifiableInitializableComponent
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
-
Constructor Summary
Constructors Constructor Description Consent()
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
String
getValue()
Get the consent value.int
hashCode()
boolean
isApproved()
Whether consent is approved or denied.void
setApproved(boolean flag)
Set whether consent is approved.void
setValue(String val)
Set the consent value.String
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:
- Constant Field Values
-
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
-