@ThreadSafe public final class SAMLMetadataSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static QName |
CACHE_DURATION_ATTRIB_NAME
cacheDuration attribute name.
|
static QName |
ENTITIES_DESCRIPTOR_NAME
EntitiesDescriptor element name.
|
static QName |
ENTITY_DESCRIPTOR_NAME
EntityDescriptor element name.
|
static QName |
EXTENSIONS_NAME
Extensions element name.
|
static String |
MD_NS
SAML Metadata namespace URI.
|
static String |
MD_PREFIX
Default SAML Metadata namespace prefix.
|
static QName |
VALID_UNTIL_ATTRIB_NAME
validUntil attribute name.
|
| Modifier | Constructor and Description |
|---|---|
private |
SAMLMetadataSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addDescriptorExtension(Element descriptor,
Element extension)
Adds a given extension to a given descriptor.
|
static List<Element> |
getDescriptorExtensionList(Element descriptor,
QName extensionName)
Gets a list of all instances of an extension element for a given descriptor.
|
static Element |
getDescriptorExtensions(Element descriptor,
QName extensionName)
Gets the first instance of an extension element for a given descriptor.
|
static boolean |
isEntitiesDescriptor(Element e)
Checks if the given element is an EntitiesDescriptor.
|
static boolean |
isEntityDescriptor(Element e)
Checks if the given element is an EntityDescriptor.
|
static boolean |
isEntityOrEntitiesDescriptor(Element e)
Check if the given element is an EntityDescriptor or EntitiesDescriptor.
|
public static final String MD_NS
public static final String MD_PREFIX
public static final QName ENTITIES_DESCRIPTOR_NAME
public static final QName ENTITY_DESCRIPTOR_NAME
public static final QName EXTENSIONS_NAME
public static final QName VALID_UNTIL_ATTRIB_NAME
public static final QName CACHE_DURATION_ATTRIB_NAME
public static boolean isEntityOrEntitiesDescriptor(@Nullable Element e)
e - element to checkpublic static boolean isEntitiesDescriptor(@Nullable Element e)
e - element to checkpublic static boolean isEntityDescriptor(@Nullable Element e)
e - element to check@Nonnull public static List<Element> getDescriptorExtensionList(@Nonnull Element descriptor, @Nonnull QName extensionName)
descriptor - the descriptor, never nullextensionName - name of the extension element, never nullpublic static Element getDescriptorExtensions(@Nullable Element descriptor, @Nullable QName extensionName)
descriptor - the descriptor, never nullextensionName - the name of the extension element, never nullnull if either argument is null,
or no such element exists as an extension of the descriptorpublic static void addDescriptorExtension(@Nullable Element descriptor, @Nullable Element extension)
descriptor - descriptor to which the extension will be addedextension - extension to be added to the descriptorCopyright © 1999–2016. All rights reserved.