Package org.sourceid.saml20.adapter.gui
Class CertificateSelectionFieldDescriptor
- java.lang.Object
-
- org.sourceid.saml20.adapter.gui.FieldDescriptor
-
- org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor
-
- org.sourceid.saml20.adapter.gui.SelectFieldDescriptor
-
- org.sourceid.saml20.adapter.gui.CertificateSelectionFieldDescriptor
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClientCertKeypairFieldDescriptor,DsigKeypairFieldDescriptor,EncryptionCertificateFieldDescriptor,TrustedCAFieldDescriptor
public abstract class CertificateSelectionFieldDescriptor extends SelectFieldDescriptor
A field descriptor that will render (in GUI configuration screen) a drop down selection of certificates- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor
AbstractSelectionFieldDescriptor.OptionValue
-
Nested classes/interfaces inherited from class org.sourceid.saml20.adapter.gui.FieldDescriptor
FieldDescriptor.FieldValidationWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_SUBJECT_DN_LENGTH_FOR_DISPLAY-
Fields inherited from class org.sourceid.saml20.adapter.gui.SelectFieldDescriptor
DEFAULT, SELECT_ONE
-
Fields inherited from class org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor
NONE_SELECTED
-
-
Constructor Summary
Constructors Constructor Description CertificateSelectionFieldDescriptor(String name, String description)Create a new CertificateSelectionFieldDescriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFormattedValue(String value)Gets the option name (un-truncated) associated with the specified value.List<AbstractSelectionFieldDescriptor.OptionValue>getOptionValues()Gets the option values list-
Methods inherited from class org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor
setOptionValues
-
Methods inherited from class org.sourceid.saml20.adapter.gui.FieldDescriptor
addValidator, addValidator, getDefaultForLegacyConfig, getDefaultValue, getDescription, getLabel, getName, getValidationChain, isHidden, setDefaultForLegacyConfig, setDefaultValue, setHidden, setLabel
-
-
-
-
Field Detail
-
DEFAULT_SUBJECT_DN_LENGTH_FOR_DISPLAY
public static final int DEFAULT_SUBJECT_DN_LENGTH_FOR_DISPLAY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CertificateSelectionFieldDescriptor
public CertificateSelectionFieldDescriptor(String name, String description)
Create a new CertificateSelectionFieldDescriptor.- Parameters:
name- The field name (must be unique per AdapterConfigurationGuiDescriptor or TableDescriptor). This name will also be used as the label for the field in the administrative console. To ensure configuration can be read in future releases of a plugin, it is recommended to not change a field's name - instead use a label to rename it in the administrative console.description- The field description displayed in the administrative console.
-
-
Method Detail
-
getOptionValues
public List<AbstractSelectionFieldDescriptor.OptionValue> getOptionValues()
Gets the option values list- Overrides:
getOptionValuesin classAbstractSelectionFieldDescriptor- Returns:
- the option value list.
-
getFormattedValue
public String getFormattedValue(String value)
Gets the option name (un-truncated) associated with the specified value.- Overrides:
getFormattedValuein classAbstractSelectionFieldDescriptor- Parameters:
value- The option value.- Returns:
- A String representing the option name that is paired with the specified option value.
-
-