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 TypeMethodDescriptionbooleangetValue()Get the consent value.inthashCode()booleanWhether consent is approved or denied.voidsetApproved(boolean flag) Set whether consent is approved.voidSet the consent value.toString()Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
WILDCARD
Wildcard used to represent consent to any ID or value.- See Also:
-
value
Consent value. -
approved
private boolean approvedWhether consent is approved.
-
-
Constructor Details
-
Consent
public Consent()
-
-
Method Details
-
getValue
Get the consent value.- Returns:
- the consent value
-
isApproved
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
-