Package net.shibboleth.idp.saml.nameid
Interface NameIDDecoder
-
- All Known Implementing Classes:
CryptoTransientNameIDDecoder,StoredPersistentIdDecoder,TransformingNameIDDecoder,TransientNameIDDecoder
public interface NameIDDecoderInterface for converting aNameIDback into a principal name.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringdecode(SubjectCanonicalizationContext c14nContext, NameID nameID)Decode the providedNameID.
-
-
-
Method Detail
-
decode
@Nullable String decode(@Nonnull SubjectCanonicalizationContext c14nContext, @Nonnull NameID nameID) throws NameDecoderException
Decode the providedNameID.If the object is incompatible with the decoder in some way, a null is returned.
- Parameters:
c14nContext- the active c14n contextnameID- the object to decode- Returns:
- the principal decoded from the value, or null
- Throws:
NameDecoderException- if an error occurred during translation
-
-