Uses of Class
org.forgerock.macaroons.Macaroon
-
Packages that use Macaroon Package Description org.forgerock.macaroons Implementation of Macaroons: Cookies with contextual caveats for decentralized authorization in the cloud. SeeMacaroonfor more details. -
-
Uses of Macaroon in org.forgerock.macaroons
Methods in org.forgerock.macaroons that return Macaroon Modifier and Type Method Description MacaroonMacaroon. addFirstPartyCaveat(byte[] caveat)Adds a first-party caveat to the macaroon.MacaroonMacaroon. addFirstPartyCaveat(String caveat)Adds a first-party caveat to the macaroon.MacaroonMacaroon. addFirstPartyCaveat(JsonValue caveat)Adds a first-party caveat to the macaroon.MacaroonMacaroon. addThirdPartyCaveat(String location, byte[] caveatKey, byte[] identifier)Adds a third-party caveat to the macaroon.MacaroonMacaroon. addThirdPartyCaveat(String location, byte[] caveatKey, String identifier)Adds a third-party caveat to the macaroon.MacaroonMacaroon. copy()Creates a copy of this macaroon.static MacaroonMacaroon. create(Key key, String location, byte[] identifier)Creates 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.MacaroonSerializationFormat. deserialize(String data)Reads a macaroon from a string.Methods in org.forgerock.macaroons that return types with arguments of type Macaroon Modifier and Type Method Description List<Macaroon>Macaroon. 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 Macaroon Modifier and Type Method Description booleanCaveatVerifier. isSatisfied(Macaroon.Caveat caveat, Macaroon macaroon)Checks whether the given caveat is satisfied.booleanJsonCaveatVerifier. isSatisfied(Macaroon.Caveat caveat, Macaroon macaroon)List<Macaroon>Macaroon. prepareForRequest(Macaroon... dischargeMacaroons)Prepares this macaroon to be sent with a request by binding any discharge macaroons to it.MacaroonVerifierMacaroonVerifier. satisfyThirdParty(Macaroon dischargeMacaroon)Satisfies a 3rd-party caveat using the given discharge macaroon.StringSerializationFormat. serialize(Macaroon macaroon)Converts the macaroon to a string.Promise<MacaroonVerifierResult,RejectedMacaroonException>MacaroonVerifier. verify(Macaroon macaroon)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 Macaroon Modifier and Type Method Description MacaroonVerifierMacaroonVerifier. satisfyThirdParty(Iterable<Macaroon> dischargeMacaroons)Satisfies one or more 3rd-party caveats using the given discharge macaroons.
-