Uses of Class
org.forgerock.macaroons.Macaroon
Package
Description
Implementation of
Macaroons: Cookies with contextual caveats for decentralized
authorization in the cloud. See
Macaroon
for more details.-
Uses of Macaroon in org.forgerock.macaroons
Modifier and TypeMethodDescriptionMacaroon.addFirstPartyCaveat
(byte[] caveat) Adds a first-party caveat to the macaroon.Macaroon.addFirstPartyCaveat
(String caveat) Adds a first-party caveat to the macaroon.Macaroon.addFirstPartyCaveat
(JsonValue caveat) Adds a first-party caveat to the macaroon.Macaroon.addThirdPartyCaveat
(String location, byte[] caveatKey, byte[] identifier) Adds a third-party caveat to the macaroon.Macaroon.addThirdPartyCaveat
(String location, byte[] caveatKey, String identifier) Adds a third-party caveat to the macaroon.Macaroon.copy()
Creates a copy of this macaroon.static Macaroon
Creates a fresh Macaroon with no caveats.static Macaroon
Macaroon.create
(SigningKey key) Creates a fresh Macaroon with no caveats, a blank location hint, and a random identifier.static Macaroon
Macaroon.create
(SigningKey key, String location) Creates a fresh Macaroon with no caveats and a random identifier.static Macaroon
Macaroon.create
(SigningKey signingKey, String location, byte[] identifier) Creates a fresh Macaroon with no caveats.static Macaroon
Macaroon.create
(SigningKey signingKey, String location, String identifier) Creates a fresh Macaroon with no caveats.static Macaroon
Macaroon.deserialize
(String macaroon) Deserializes a macaroon from the default format.static Macaroon
Macaroon.deserialize
(SerializationFormat format, String macaroon) Deserializes a macaroon from the given format.SerializationFormat.deserialize
(String data) Reads a macaroon from a string.Modifier and TypeMethodDescriptionMacaroon.prepareForRequest
(Macaroon... dischargeMacaroons) Prepares this macaroon to be sent with a request by binding any discharge macaroons to it.Modifier and TypeMethodDescriptionboolean
CaveatVerifier.isSatisfied
(Macaroon.Caveat caveat, Macaroon macaroon) Checks whether the given caveat is satisfied.boolean
JsonCaveatVerifier.isSatisfied
(Macaroon.Caveat caveat, Macaroon macaroon) Macaroon.prepareForRequest
(Macaroon... dischargeMacaroons) Prepares this macaroon to be sent with a request by binding any discharge macaroons to it.MacaroonVerifier.satisfyThirdParty
(Macaroon dischargeMacaroon) Satisfies a 3rd-party caveat using the given discharge macaroon.Converts the macaroon to a string.Verifies the given macaroon using any valid verification key and testing to see that all caveats are satisfied.Modifier and TypeMethodDescriptionMacaroonVerifier.satisfyThirdParty
(Iterable<Macaroon> dischargeMacaroons) Satisfies one or more 3rd-party caveats using the given discharge macaroons.