public final class SAMLEncoderSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
Class logger.
|
| Modifier | Constructor and Description |
|---|---|
private |
SAMLEncoderSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static XMLObject |
encodeByteArrayValue(IdPAttribute attribute,
QName attributeValueElementName,
byte[] value,
boolean withType)
Base64 encodes a
byte[] into a SAML attribute value element. |
static XMLObject |
encodeScopedStringValueAttribute(IdPAttribute attribute,
QName attributeValueElementName,
ScopedStringAttributeValue value,
String scopeAttributeName,
boolean withType)
Encode a
ScopedStringAttributeValue value in to an SAML attribute value element using the
(older Shibboleth) sytnax where the scope is inside an XML attribute. |
static XMLObject |
encodeScopedStringValueInline(IdPAttribute attribute,
QName attributeValueElementName,
ScopedStringAttributeValue value,
String scopeDelimiter,
boolean withType)
Encode a
ScopedStringAttributeValue value into a SAML attribute value element using
the "inline" syntax where the scope and value are combined into a string. |
static XMLObject |
encodeStringValue(IdPAttribute attribute,
QName attributeValueElementName,
String value,
boolean withType)
Encodes a String value into a SAML attribute value element.
|
static XMLObject |
encodeXMLObjectValue(IdPAttribute attribute,
QName attributeValueElementName,
XMLObject value)
|
@Nonnull private static final org.slf4j.Logger LOG
@Nullable public static XMLObject encodeStringValue(@Nonnull IdPAttribute attribute, @Nonnull QName attributeValueElementName, @Nullable String value, boolean withType)
attribute - attribute to be encodedattributeValueElementName - the element name to createvalue - value to encodedwithType - whether to include xsi:type@Nullable public static XMLObject encodeByteArrayValue(@Nonnull IdPAttribute attribute, @Nonnull QName attributeValueElementName, @Nullable byte[] value, boolean withType)
byte[] into a SAML attribute value element.attribute - attribute to be encodedattributeValueElementName - the element name to createvalue - value to encodedwithType - whether to include xsi:type@Nullable public static XMLObject encodeXMLObjectValue(@Nonnull IdPAttribute attribute, @Nonnull QName attributeValueElementName, @Nullable XMLObject value)
attribute - attribute to be encodedattributeValueElementName - the SAML 1 or SAML 1 attribute namevalue - value to encodedpublic static XMLObject encodeScopedStringValueAttribute(@Nonnull IdPAttribute attribute, @Nonnull QName attributeValueElementName, @Nullable ScopedStringAttributeValue value, @Nonnull@NotEmpty String scopeAttributeName, boolean withType)
ScopedStringAttributeValue value in to an SAML attribute value element using the
(older Shibboleth) sytnax where the scope is inside an XML attribute.attribute - attribute to be encodedattributeValueElementName - the element name to createvalue - value to encodedscopeAttributeName - the name that the attribute will be givenwithType - whether to include xsi:typepublic static XMLObject encodeScopedStringValueInline(@Nonnull IdPAttribute attribute, @Nonnull QName attributeValueElementName, @Nullable ScopedStringAttributeValue value, @Nonnull String scopeDelimiter, boolean withType)
ScopedStringAttributeValue value into a SAML attribute value element using
the "inline" syntax where the scope and value are combined into a string.attribute - attribute to be encodedattributeValueElementName - the element name to createvalue - value to encodedscopeDelimiter - the delimiter to put between the value and the scopewithType - whether to include xsi:typeCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.