Class SignerIdentityAttributeValue
java.lang.Object
se.idsec.signservice.integration.core.AbstractIdentityAttribute
se.idsec.signservice.integration.authentication.SignerIdentityAttribute
se.idsec.signservice.integration.authentication.SignerIdentityAttributeValue
- All Implemented Interfaces:
Serializable
Representation of the value of a signer attribute.
When a sign requester sends a SignRequest message it includes requirements on the signer regarding authenticated attributes. This class represents these requirements.
Currently, the only supported attribute type is SAML. A missing type will represent SAML (AbstractIdentityAttribute.getType()
).
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder forSignerIdentityAttributeValue
objects.Nested classes/interfaces inherited from class se.idsec.signservice.integration.authentication.SignerIdentityAttribute
SignerIdentityAttribute.SignerIdentityAttributeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The default attribute value type to use.static final String
The default name format to use.Fields inherited from class se.idsec.signservice.integration.authentication.SignerIdentityAttribute
SAML_TYPE
Fields inherited from class se.idsec.signservice.integration.core.AbstractIdentityAttribute
name, type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the type for the attribute value.Gets the name format for the attribute.getValue()
Gets the attribute value (in its string representation).void
setAttributeValueType
(String attributeValueType) Assigns the type for the attribute value.void
setNameFormat
(String nameFormat) Assigns the name format for the attribute.void
Assigns the attribute value (in its string representation).Methods inherited from class se.idsec.signservice.integration.core.AbstractIdentityAttribute
getName, getType, setName, setType
-
Field Details
-
DEFAULT_NAME_FORMAT
The default name format to use.- See Also:
-
DEFAULT_ATTRIBUTE_VALUE_TYPE
The default attribute value type to use. We assume SAML's xs:string.- See Also:
-
-
Constructor Details
-
SignerIdentityAttributeValue
public SignerIdentityAttributeValue()Default constructor. -
SignerIdentityAttributeValue
public SignerIdentityAttributeValue(String type, String name, String value, String nameFormat, String attributeValueType) Constructor.- Parameters:
type
- the type of attribute (ifnull
, SAML is assumed)name
- the name of the attributevalue
- the value of the attributenameFormat
- the name formatattributeValueType
- the value type
-
-
Method Details
-
getValue
Gets the attribute value (in its string representation).- Returns:
- the attribute value (in its string representation)
-
setValue
Assigns the attribute value (in its string representation).- Parameters:
value
- the attribute value (in its string representation)
-
getNameFormat
Gets the name format for the attribute. When the attribute type is SAML the default is "urn:oasis:names:tc:SAML:2.0:attrname-format:uri".- Returns:
- the name format for the attribute
-
setNameFormat
Assigns the name format for the attribute. When the attribute type is SAML the default is "urn:oasis:names:tc:SAML:2.0:attrname-format:uri".- Parameters:
nameFormat
- the (SAML) name format
-
getAttributeValueType
Gets the type for the attribute value. When SAML attributes are represented, this holds the XSI type without the namespace prefix. The default in those cases is "string".- Returns:
- the attribute value type
-
setAttributeValueType
Assigns the type for the attribute value. When SAML attributes are represented, this holds the XSI type without the namespace prefix. The default in those cases is "string".- Parameters:
attributeValueType
- the attribute value type
-