/** * Encrypt identity into text. * @param identity The identity to encrypt * @return Encrypted text for cookie * @since 0.5 */ public String encrypt(@NotNull final Identity identity) { return AuthInset.encrypt(identity, this.key); }
.add("photo", identity.photo().toString()) .up() .add("token", this.encrypt(identity)) .up() );