public class PrinicpalConnectorCanonicalizer extends Object implements net.shibboleth.idp.attribute.resolver.LegacyPrincipalDecoder
PrincipalConnector instances.| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private Collection<PrincipalConnector> |
principalConnectors
The connectors.
|
| Constructor and Description |
|---|
PrinicpalConnectorCanonicalizer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
canonicalize(org.opensaml.saml.saml1.core.NameIdentifier nameIdentifier,
SubjectCanonicalizationContext c14nContext)
Canonicalize the provided
NameIdentifier with respect to the provided
SubjectCanonicalizationContext. |
protected String |
canonicalize(org.opensaml.saml.saml2.core.NameID nameID,
SubjectCanonicalizationContext c14nContext)
Canonicalize the provided
NameID with respect to the provided SubjectCanonicalizationContext. |
String |
canonicalize(SubjectCanonicalizationContext c14nContext)
Resolve the principal with respect to the provided context.
|
boolean |
hasValidConnectors() |
void |
setConnectors(Collection<PrincipalConnector> connectors)
Set the connectors we care about.
|
@Nonnull private final org.slf4j.Logger log
@Nonnull @NonnullElements private Collection<PrincipalConnector> principalConnectors
public void setConnectors(@Nullable@NullableElements Collection<PrincipalConnector> connectors)
connectors - the connectors we care about.public boolean hasValidConnectors()
hasValidConnectors in interface net.shibboleth.idp.attribute.resolver.LegacyPrincipalDecoder@Nullable public String canonicalize(@Nonnull SubjectCanonicalizationContext c14nContext) throws net.shibboleth.idp.attribute.resolver.ResolutionException
NameID or NameIdentifier and match it
against the connector definitions configured.canonicalize in interface net.shibboleth.idp.attribute.resolver.LegacyPrincipalDecoderc14nContext - what to look at.AuthnEventIds.INVALID_SUBJECT eventnet.shibboleth.idp.attribute.resolver.ResolutionException - if we recognise the definition but could not decode it (data out of date and so
forth) This will be turned into a AuthnEventIds.SUBJECT_C14N_ERROR
event@Nullable protected String canonicalize(@Nonnull org.opensaml.saml.saml1.core.NameIdentifier nameIdentifier, @Nonnull SubjectCanonicalizationContext c14nContext) throws net.shibboleth.idp.attribute.resolver.ResolutionException
NameIdentifier with respect to the provided
SubjectCanonicalizationContext.
We iterate over all the connectors to see whether anything matches.
nameIdentifier - the NameIdentifierc14nContext - the SubjectCanonicalizationContextnet.shibboleth.idp.attribute.resolver.ResolutionException - if we get a fatal error during decoding.@Nullable protected String canonicalize(@Nonnull org.opensaml.saml.saml2.core.NameID nameID, @Nonnull SubjectCanonicalizationContext c14nContext) throws net.shibboleth.idp.attribute.resolver.ResolutionException
NameID with respect to the provided SubjectCanonicalizationContext.
nameID - the NameIDc14nContext - the SubjectCanonicalizationContextnet.shibboleth.idp.attribute.resolver.ResolutionException - if we get a fatal error during decoding.Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.