Uses of Class
org.forgerock.macaroons.Macaroon
Packages that use 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
Methods in org.forgerock.macaroons that return MacaroonModifier 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 MacaroonCreates a fresh Macaroon with no caveats.static MacaroonMacaroon.create(SigningKey key) Creates a fresh Macaroon with no caveats, a blank location hint, and a random identifier.static MacaroonMacaroon.create(SigningKey key, String location) Creates a fresh Macaroon with no caveats and a random identifier.static MacaroonMacaroon.create(SigningKey signingKey, String location, byte[] identifier) Creates a fresh Macaroon with no caveats.static MacaroonMacaroon.create(SigningKey signingKey, String location, String identifier) Creates a fresh Macaroon with no caveats.static MacaroonMacaroon.deserialize(String macaroon) Deserializes a macaroon from the default format.static MacaroonMacaroon.deserialize(SerializationFormat format, String macaroon) Deserializes a macaroon from the given format.SerializationFormat.deserialize(String data) Reads a macaroon from a string.Methods in org.forgerock.macaroons that return types with arguments of type MacaroonModifier and TypeMethodDescriptionMacaroon.prepareForRequest(Macaroon... dischargeMacaroons) Prepares this macaroon to be sent with a request by binding any discharge macaroons to it.Methods in org.forgerock.macaroons with parameters of type MacaroonModifier and TypeMethodDescriptionbooleanCaveatVerifier.isSatisfied(Macaroon.Caveat caveat, Macaroon macaroon) Checks whether the given caveat is satisfied.booleanJsonCaveatVerifier.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.Method parameters in org.forgerock.macaroons with type arguments of type MacaroonModifier and TypeMethodDescriptionMacaroonVerifier.satisfyThirdParty(Iterable<Macaroon> dischargeMacaroons) Satisfies one or more 3rd-party caveats using the given discharge macaroons.