Package org.forgerock.macaroons
Class MacaroonVerifierResult
java.lang.Object
org.forgerock.macaroons.MacaroonVerifierResult
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 Details
-
isValid
public boolean isValid()Indicates whether the macaroon is valid. A valid macaroon has a valid signature and no unsatisfied caveats.- Returns:
true
if the macaroon is valid.
-
isSignatureValid
public boolean isSignatureValid()Indicates whether the signature was valid, ignoring any unsatisfied caveats.- Returns:
true
if the macaroon signature is valid.
-
getUnsatisfiedCaveats
Returns any caveats that are not satisfied for this macaroon.- Returns:
- the unsatisfied caveats.
-
toString
-