EncodedType - the type of object created by encoding the attribute@ThreadSafe public interface AttributeEncoder<EncodedType>
IdPAttribute into a protocol specific representation. Implementations must take
into account that an IdPAttribute may contain values of multiple types. An implementation encountering
a value type it does not understand may either decide to ignore it or throw an AttributeEncodingException.
Encoders implement a Predicate interface to determine their applicability to a request.
Encoders MUST be thread-safe and stateless and MUST implement appropriate
Object.equals(Object) and Object.hashCode() methods.
| Modifier and Type | Method and Description |
|---|---|
EncodedType |
encode(IdPAttribute attribute)
Encode the supplied attribute into a protocol specific representation.
|
Predicate<ProfileRequestContext> |
getActivationCondition()
Get an activation condition for this encoder.
|
String |
getProtocol()
Get the identifier of the protocol targeted by this encoder.
|
@Nonnull @NotEmpty String getProtocol()
@Nonnull Predicate<ProfileRequestContext> getActivationCondition()
@Nonnull EncodedType encode(@Nonnull IdPAttribute attribute) throws AttributeEncodingException
attribute - the attribute to encodeAttributeEncodingException - if unable to successfully encode attributeCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.