Package org.forgerock.macaroons
Class MacaroonVerifierResult
- java.lang.Object
 - 
- org.forgerock.macaroons.MacaroonVerifierResult
 
 
- 
public class MacaroonVerifierResult extends Object
Indicates whether a macaroon was successfully verified or not. This result encapsulates two decisions: whether the macaroon signature was valid, and whether any caveats were not satisfied. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Macaroon.Caveat>getUnsatisfiedCaveats()Returns any caveats that are not satisfied for this macaroon.booleanisSignatureValid()Indicates whether the signature was valid, ignoring any unsatisfied caveats.booleanisValid()Indicates whether the macaroon is valid.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
isValid
public boolean isValid()
Indicates whether the macaroon is valid. A valid macaroon has a valid signature and no unsatisfied caveats.- Returns:
 trueif the macaroon is valid.
 
- 
isSignatureValid
public boolean isSignatureValid()
Indicates whether the signature was valid, ignoring any unsatisfied caveats.- Returns:
 trueif the macaroon signature is valid.
 
- 
getUnsatisfiedCaveats
public Set<Macaroon.Caveat> getUnsatisfiedCaveats()
Returns any caveats that are not satisfied for this macaroon.- Returns:
 - the unsatisfied caveats.
 
 
 - 
 
 -