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 SummaryAll 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- 
isValidpublic 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.
 
 - 
isSignatureValidpublic boolean isSignatureValid() Indicates whether the signature was valid, ignoring any unsatisfied caveats.- Returns:
- trueif the macaroon signature is valid.
 
 - 
getUnsatisfiedCaveatspublic Set<Macaroon.Caveat> getUnsatisfiedCaveats() Returns any caveats that are not satisfied for this macaroon.- Returns:
- the unsatisfied caveats.
 
 
- 
 
-