|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.metadata.dom.saml.SamlMetadataSupport
@ThreadSafe public final class SamlMetadataSupport
Helper class for dealing with SAML metadata.
| Field Summary | |
|---|---|
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 String |
RPI_NS
SAML Registration and Publication Information namespace URI. |
static QName |
VALID_UNTIL_ATTIB_NAME
validUntil attribute name. |
| Constructor Summary | |
|---|---|
private |
SamlMetadataSupport()
Constructor. |
| Method Summary | |
|---|---|
static void |
addDescriptorExtension(Element descriptor,
Element extension)
Adds a given extension to 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MD_NS
public static final String MD_PREFIX
public static final String RPI_NS
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_ATTIB_NAME
public static final QName CACHE_DURATION_ATTRIB_NAME
| Constructor Detail |
|---|
private SamlMetadataSupport()
| Method Detail |
|---|
public static boolean isEntityOrEntitiesDescriptor(@Nullable
Element e)
e - element to check
public static boolean isEntitiesDescriptor(@Nullable
Element e)
e - element to check
public static boolean isEntityDescriptor(@Nullable
Element e)
e - element to check
public static Element getDescriptorExtensions(@Nullable
Element descriptor,
@Nullable
QName extensionName)
descriptor - the entity or entities descriptor, never nullextensionName - the name of the extension element, never null
public static void addDescriptorExtension(@Nullable
Element descriptor,
@Nullable
Element extension)
descriptor - descriptor to which the extension will be addedextension - extension to be added to the descriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||