Class BaseTransformingDecoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.saml.nameid.impl.BaseTransformingDecoder
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
TransformingNameIDDecoder,TransformingNameIdentifierDecoder
Regular expression, etc. transform of an identifier.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private booleanConvert to lowercase prior to transforms?Match patterns and replacement strings to apply.private booleanConvert to uppercase prior to transforms? -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringApply configured transforms to input identifier.voidsetLowercase(boolean flag) Controls conversion to lowercase prior to applying any transforms.voidsetTransforms(Collection<Pair<String, String>> newTransforms) A collection of regular expression and replacement pairs.voidsetUppercase(boolean flag) Controls conversion to uppercase prior to applying any transforms.Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
transforms
Match patterns and replacement strings to apply. -
uppercase
private boolean uppercaseConvert to uppercase prior to transforms? -
lowercase
private boolean lowercaseConvert to lowercase prior to transforms?
-
-
Constructor Details
-
BaseTransformingDecoder
public BaseTransformingDecoder()Constructor.
-
-
Method Details
-
setUppercase
public void setUppercase(boolean flag) Controls conversion to uppercase prior to applying any transforms.- Parameters:
flag- uppercase flag- Since:
- 4.1.0
-
setLowercase
public void setLowercase(boolean flag) Controls conversion to lowercase prior to applying any transforms.- Parameters:
flag- lowercase flag- Since:
- 4.1.0
-
setTransforms
A collection of regular expression and replacement pairs.- Parameters:
newTransforms- collection of replacement transforms
-
decode
Apply configured transforms to input identifier.- Parameters:
id- the identifier to transform- Returns:
- transformed value
-