|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.meta.publish.MetaDataMarshaller
public class MetaDataMarshaller
This class performs the mapping of eduGAIN metadata objects to SAML2 metadata objects and their marshalling to the XML representation.
| Field Summary | |
|---|---|
protected static org.opensaml.xml.XMLObjectBuilderFactory |
builderFactory
XMLObject builder factory. |
private static org.slf4j.Logger |
log
Class logger. |
protected static org.opensaml.xml.io.MarshallerFactory |
marshallerFactory
XMLObject marshaller factory. |
protected static org.opensaml.xml.parse.BasicParserPool |
parser
Parser manager used to parse XML. |
| Constructor Summary | |
|---|---|
MetaDataMarshaller()
Constructor |
|
| Method Summary | |
|---|---|
org.opensaml.saml2.metadata.AttributeAuthorityDescriptor |
mapToAADescriptor(AAInterface aaInterf)
Maps the given eduGAIN AAInterface object to a SAML2 AttributeAuthorityDescriptor |
OnlineCADescriptorType |
mapToCADescriptor(CAInterface caInterf)
Maps the given eduGAIN CAInterface object to an OnlineCADescriptorType object, which is an eduGAIN extension to SAML2 metadata. |
org.opensaml.saml2.metadata.ContactPerson |
mapToContactPerson(Contact contact)
Maps the given eduGAIN Contact object to a SAML2 ContactPerson object |
org.opensaml.saml2.metadata.EntityDescriptor |
mapToEntityDescriptor(BEMetaData bemd)
Maps the given eduGAIN BEMetaData object to a SAML2 EntityDescriptor |
org.opensaml.saml2.metadata.IDPSSODescriptor |
mapToIDPDescriptor(IDPInterface idpInterf)
Maps the given eduGAIN IDPInterface object to a SAML2 IDPSSODescriptor |
org.opensaml.saml2.metadata.Organization |
mapToOrganization(Organisation org,
java.util.ArrayList<HLPattern> hlPatterns)
Builds an SAML2 Organization object and maps the given 'home locator patterns' as Extensions to the Organization element |
org.opensaml.saml2.metadata.SPSSODescriptor |
mapToSPDescriptor(SPInterface spInterf)
Maps the given eduGAIN SPInterface object to a SAML2 SPSSODescriptor |
java.lang.String |
mapToXMLString(org.w3c.dom.Element root)
Obtains the XML representation for a given root element in the form of a String |
org.w3c.dom.Element |
marshallEntitiesDescriptor(org.opensaml.saml2.metadata.EntitiesDescriptor entitiesDescr)
Marshalls a SAML2 EntitiesDescriptor to a DOM Element. |
org.w3c.dom.Element |
marshallEntityDescriptor(org.opensaml.saml2.metadata.EntityDescriptor entityDescr)
Marshalls a SAML2 EntityDescriptor to a DOM Element. |
org.w3c.dom.Element |
marshallMetaData(java.util.ArrayList<BEMetaData> bemdlist,
java.lang.String fppCompID,
java.lang.String federationID)
Maps the given list of BEMetaData objects to the corresponding SAML2 representation (EntitiesDescriptor) and marshalls the latter to a DOM element. |
org.w3c.dom.Element |
marshallMetaData(BEMetaData bemd)
Maps the given BEMetaData object to the corresponding SAML2 representation (EntityDescriptor) and marshalls the latter to a DOM element |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.opensaml.xml.parse.BasicParserPool parser
protected static org.opensaml.xml.XMLObjectBuilderFactory builderFactory
protected static org.opensaml.xml.io.MarshallerFactory marshallerFactory
private static org.slf4j.Logger log
| Constructor Detail |
|---|
public MetaDataMarshaller()
| Method Detail |
|---|
public org.w3c.dom.Element marshallMetaData(BEMetaData bemd)
bemd - the BE metadata object
public org.w3c.dom.Element marshallMetaData(java.util.ArrayList<BEMetaData> bemdlist,
java.lang.String fppCompID,
java.lang.String federationID)
bemdlist - the list of BE metadata objectfppCompID - the component ID of the publishing FPP
public org.w3c.dom.Element marshallEntityDescriptor(org.opensaml.saml2.metadata.EntityDescriptor entityDescr)
entityDescr -
public org.w3c.dom.Element marshallEntitiesDescriptor(org.opensaml.saml2.metadata.EntitiesDescriptor entitiesDescr)
entitiesDescr -
public org.opensaml.saml2.metadata.EntityDescriptor mapToEntityDescriptor(BEMetaData bemd)
bemd - the BE metadata object
public org.opensaml.saml2.metadata.IDPSSODescriptor mapToIDPDescriptor(IDPInterface idpInterf)
idpInterf - the IDPInterface object
public org.opensaml.saml2.metadata.AttributeAuthorityDescriptor mapToAADescriptor(AAInterface aaInterf)
aaInterf - the AAInterface object
public org.opensaml.saml2.metadata.SPSSODescriptor mapToSPDescriptor(SPInterface spInterf)
spInterf - the SPInterface object
public OnlineCADescriptorType mapToCADescriptor(CAInterface caInterf)
caInterf - the CAInterface object
public org.opensaml.saml2.metadata.Organization mapToOrganization(Organisation org,
java.util.ArrayList<HLPattern> hlPatterns)
hlPatterns - the home locator patterns to be included
public org.opensaml.saml2.metadata.ContactPerson mapToContactPerson(Contact contact)
contact - the eduGAIN object to be mapped
public java.lang.String mapToXMLString(org.w3c.dom.Element root)
root - the element to be mapped to an xml string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||