Class SamlAttribute
java.lang.Object
com.revetsec.saml.SamlAttribute
An attribute from the covered Assertion. Text values are exposed separately from complex
values so callers cannot mistake nested XML for a scalar identifier.
Login accepts at most 128 Attribute elements and 256 AttributeValue elements in total across
every AttributeStatement in the assertion. Duplicate names, empty attributes and complex
values count toward those totals. Each exposed text value is limited to 4,096 UTF-16 code
units (String.length()); Name, NameFormat and FriendlyName are each limited to 2,048
code units, with a nonempty Name required. These fixed limits apply in addition to XML input
and structure limits. If attribute validation is reached, exceeding one rejects the entire login with
SamlAuthenticationResult.Reason.ASSERTION_SHAPE; attributes are never truncated.
The text limit does not describe opaque complex content or nested NameID validation.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the optional friendly name for display only.getName()Returns the exact attribute Name.Returns the optional NameFormat URI.Returns all values in assertion order, including nested NameID and opaque complex values.Returns immutable text values in assertion order.toString()Redacts values and names.
-
Method Details
-
getName
-
getNameFormat
Returns the optional NameFormat URI.- Returns:
- optional format
- Since:
- 1.0.0
-
getFriendlyName
Returns the optional friendly name for display only.- Returns:
- optional friendly name
- Since:
- 1.0.0
-
getValues
-
getTypedValues
Returns all values in assertion order, including nested NameID and opaque complex values.- Returns:
- immutable typed values
- Since:
- 1.0.0
-
toString
-