/** * De-serializes the given byte array by using the {@link #getSerializer() serializer}'s * {@link Serializer#deserialize deserialize} method. * * @param serializedIdentity the previously serialized {@code PrincipalCollection} as a byte array * @return the de-serialized (reconstituted) {@code PrincipalCollection} */ protected PrincipalCollection deserialize(byte[] serializedIdentity) { return getSerializer().deserialize(serializedIdentity); }
/** * Serializes the given {@code principals} by serializing them to a byte array by using the * {@link #getSerializer() serializer}'s {@link Serializer#serialize(Object) serialize} method. * * @param principals the principal collection to serialize to a byte array * @return the serialized principal collection in the form of a byte array */ protected byte[] serialize(PrincipalCollection principals) { return getSerializer().serialize(principals); }
/** * De-serializes the given byte array by using the {@link #getSerializer() serializer}'s * {@link Serializer#deserialize deserialize} method. * * @param serializedIdentity the previously serialized {@code PrincipalCollection} as a byte array * @return the de-serialized (reconstituted) {@code PrincipalCollection} */ protected PrincipalCollection deserialize(byte[] serializedIdentity) { return getSerializer().deserialize(serializedIdentity); }
/** * Serializes the given {@code principals} by serializing them to a byte array by using the * {@link #getSerializer() serializer}'s {@link Serializer#serialize(Object) serialize} method. * * @param principals the principal collection to serialize to a byte array * @return the serialized principal collection in the form of a byte array */ protected byte[] serialize(PrincipalCollection principals) { return getSerializer().serialize(principals); }
/** * De-serializes the given byte array by using the {@link #getSerializer() serializer}'s * {@link Serializer#deserialize deserialize} method. * * @param serializedIdentity the previously serialized {@code PrincipalCollection} as a byte array * @return the de-serialized (reconstituted) {@code PrincipalCollection} */ protected PrincipalCollection deserialize(byte[] serializedIdentity) { return getSerializer().deserialize(serializedIdentity); }
/** * Serializes the given {@code principals} by serializing them to a byte array by using the * {@link #getSerializer() serializer}'s {@link Serializer#serialize(Object) serialize} method. * * @param principals the principal collection to serialize to a byte array * @return the serialized principal collection in the form of a byte array */ protected byte[] serialize(PrincipalCollection principals) { return getSerializer().serialize(principals); }