Interface AttributeTranscoderRegistry
- All Superinterfaces:
Component,IdentifiedComponent
- All Known Implementing Classes:
AttributeTranscoderRegistryImpl
The transcoder registry provides access to "instructions" for converting between
the
IdPAttribute "neutral" representation within the IdP and protocol-specific
forms such as SAML Attributes or OIDC claims.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface to a naming function that allows an object to be turned into a unique string name. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty name for accessing an activation condition object to apply.static final StringProperty prefix for indicating whether a rule applies to decoding.static final StringProperty prefix for language-specific description of attribute.static final StringProperty prefix for language-specific display name of attribute.static final StringProperty prefix for indicating whether a rule applies to encoding.static final StringProperty name for accessing the name of theIdPAttributeto decode into.static final StringProperty name for accessing relying parties to wrap an activation condition around.static final StringProperty name for accessingAttributeTranscoderobject to use. -
Method Summary
Modifier and TypeMethodDescriptiongetDescriptions(IdPAttribute attribute) Get the localized descriptions for anIdPAttribute.getDisplayNames(IdPAttribute attribute) Get the localized display names for anIdPAttribute.getTranscodingRules(IdPAttribute from, Class<?> to) Obtains a set of instructions for encoding an inputIdPAttributeinto a target type.getTranscodingRules(T from) Obtains a set of instructions for decoding an input object into anIdPAttribute.Methods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
PROP_ID
Property name for accessing the name of theIdPAttributeto decode into.- See Also:
-
PROP_TRANSCODER
Property name for accessingAttributeTranscoderobject to use.- See Also:
-
PROP_CONDITION
Property name for accessing an activation condition object to apply.- See Also:
-
PROP_RELYINGPARTIES
Property name for accessing relying parties to wrap an activation condition around.- See Also:
-
PROP_DISPLAY_NAME
Property prefix for language-specific display name of attribute.- See Also:
-
PROP_DESCRIPTION
Property prefix for language-specific description of attribute.- See Also:
-
PROP_ENCODER
Property prefix for indicating whether a rule applies to encoding.- See Also:
-
PROP_DECODER
Property prefix for indicating whether a rule applies to decoding.- See Also:
-
-
Method Details
-
getDisplayNames
Get the localized display names for anIdPAttribute.- Parameters:
attribute- input attribute- Returns:
- map of locale-based names
-
getDescriptions
Get the localized descriptions for anIdPAttribute.- Parameters:
attribute- input attribute- Returns:
- map of locale-based descriptions
-
getTranscodingRules
@Nonnull @Unmodifiable @NotLive Collection<TranscodingRule> getTranscodingRules(@Nonnull IdPAttribute from, @Nonnull Class<?> to) Obtains a set of instructions for encoding an inputIdPAttributeinto a target type.The principal property useful to a caller is
PROP_TRANSCODERto obtain an instance of the appropriateAttributeTranscoderto call, passing in the properties to drive that call.- Parameters:
from- the input object to encodeto- class of object being encoded- Returns:
- a collection of
TranscodingRuleobjects, possibly empty
-
getTranscodingRules
@Nonnull @Unmodifiable @NotLive <T> Collection<TranscodingRule> getTranscodingRules(@Nonnull T from) Obtains a set of instructions for decoding an input object into anIdPAttribute.The principal property useful to a caller is
PROP_TRANSCODERto obtain an instance of the appropriateAttributeTranscoderto call, passing in the properties to drive that call.- Type Parameters:
T- the type of object to decode- Parameters:
from- object to decode- Returns:
- a collection of
TranscodingRuleobjects, possibly empty
-