public class PrincipalConnector extends AbstractIdentifiableInitializableComponent implements NameIdentifierDecoder, NameIDDecoder
| Modifier and Type | Field and Description |
|---|---|
private String |
format
The format we match against.
|
private NameIDDecoder |
nameIDDecoder
The
NameID decoder. |
private NameIdentifierDecoder |
nameIdentifierDecoder
The
NameIdentifier decoder. |
private Collection<String> |
relyingParties
The relying parties we support.
|
| Constructor and Description |
|---|
PrincipalConnector() |
| Modifier and Type | Method and Description |
|---|---|
String |
decode(SubjectCanonicalizationContext c14nContext,
org.opensaml.saml.saml2.core.NameID nameID) |
String |
decode(SubjectCanonicalizationContext c14nContext,
org.opensaml.saml.saml1.core.NameIdentifier nameIdentifier) |
protected void |
doInitialize() |
String |
getFormat()
Get the format we support.
|
NameIDDecoder |
getNameIDDecoder()
Get the
NameIDDecoder. |
NameIdentifierDecoder |
getNameIdentifierDecoder()
Set the
NameIdentifierDecoder. |
Collection<String> |
getRelyingParties()
Get the supported relying parties.
|
boolean |
requesterMatches(String requester)
Does the supplier requester (relying party) match our configuration?
|
void |
setFormat(String theFormat)
Set the format we support.
|
void |
setNameIDDecoder(NameIDDecoder saml2Decoder)
Set the
NameIDDecoder. |
void |
setNameIdentifierDecoder(NameIdentifierDecoder saml1Decoder)
Get the
NameIdentifierDecoder. |
void |
setRelyingParties(Collection<String> rps)
Set the supported relying parties.
|
setIdgetIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId@NonnullAfterInit private NameIDDecoder nameIDDecoder
NameID decoder.@NonnullAfterInit private NameIdentifierDecoder nameIdentifierDecoder
NameIdentifier decoder.@NonnullAfterInit @NotEmpty private String format
@Nonnull private Collection<String> relyingParties
protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractIdentifiedInitializableComponentComponentInitializationException@Nonnull public void setNameIDDecoder(NameIDDecoder saml2Decoder)
NameIDDecoder.saml2Decoder - the decoder@Nonnull public NameIDDecoder getNameIDDecoder()
NameIDDecoder.@Nonnull public void setNameIdentifierDecoder(@Nonnull NameIdentifierDecoder saml1Decoder)
NameIdentifierDecoder.saml1Decoder - the decoder for a NameIdentifier@Nonnull public NameIdentifierDecoder getNameIdentifierDecoder()
NameIdentifierDecoder.@Nonnull public void setFormat(@Nonnull@NotEmpty String theFormat)
theFormat - the format to match on@Nonnull public String getFormat()
@Nonnull @NonnullElements @NotLive @Unmodifiable public Collection<String> getRelyingParties()
public void setRelyingParties(@Nullable@NullableElements Collection<String> rps)
rps - the supported relying partiespublic boolean requesterMatches(@Nullable String requester)
requester - the requester@Nullable public String decode(@Nonnull SubjectCanonicalizationContext c14nContext, @Nonnull org.opensaml.saml.saml2.core.NameID nameID) throws NameDecoderException
decode in interface NameIDDecoderNameDecoderException@Nullable public String decode(@Nonnull SubjectCanonicalizationContext c14nContext, @Nonnull org.opensaml.saml.saml1.core.NameIdentifier nameIdentifier) throws NameDecoderException
decode in interface NameIdentifierDecoderNameDecoderExceptionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.