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.
-
-
Constructor Summary
Constructors Constructor Description Consent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetValue()Get the consent value.inthashCode()booleanisApproved()Whether consent is approved or denied.voidsetApproved(boolean flag)Set whether consent is approved.voidsetValue(String val)Set the consent value.StringtoString()-
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 Detail
-
WILDCARD
@Nonnull @NotEmpty public static final String WILDCARD
Wildcard used to represent consent to any ID or value.- See Also:
- Constant Field Values
-
value
@Nullable private String value
Consent value.
-
approved
@Nullable private boolean approved
Whether consent is approved.
-
-
Method Detail
-
getValue
@Nullable public String 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
public void setValue(@Nonnull @NotEmpty String val)
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
-
-