|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.meta.query.MetaDataUnmarshaller
public class MetaDataUnmarshaller
This class performs the unmarshalling of metadata xml documents retrieved from the MDS into openSAML2 objects and maps these to eduGAIN metadata objects.
| Field Summary | |
|---|---|
private static org.slf4j.Logger |
log
Class logger. |
protected static org.opensaml.xml.parse.BasicParserPool |
parser
Parser manager used to parse XML. |
protected static org.opensaml.xml.io.UnmarshallerFactory |
unmarshallerFactory
XMLObject unmarshaller factory. |
| Constructor Summary | |
|---|---|
MetaDataUnmarshaller()
Constructor |
|
| Method Summary | |
|---|---|
private AAInterface |
mapToAAInterface(org.opensaml.saml2.metadata.AttributeAuthorityDescriptor aaDescr)
Maps a SAML2 AttributeAuthorityDescriptor to an eduGAIN AAInterface object |
BEMetaData |
mapToBEMetaData(org.opensaml.saml2.metadata.EntityDescriptor entityDescr)
Maps a SAML2 EntitiyDescriptor to an eduGAIN BEMetaData object. |
CAInterface |
mapToCAInterface(OnlineCADescriptorType caDescr)
Maps an extended SAML2 RoleDescriptor object to an eduGAIN CAInterface object |
Contact |
mapToContact(org.opensaml.saml2.metadata.ContactPerson contactPers)
Maps a SAML2 ContactPerson object to an eduGAIN Contact object |
FederationMetaData |
mapToFedMetaData(org.opensaml.saml2.metadata.EntitiesDescriptor entitiesDescr)
Maps a SAML2 EntitiesDescriptor to an eduGAIN FederationMetaData object. |
private HLPattern |
mapToHLPattern(org.opensaml.xml.XMLObject xmlobj)
Maps a SAML2 XMLObject to an eduGAIN HLPattern object. |
IDPInterface |
mapToIDPInterface(org.opensaml.saml2.metadata.IDPSSODescriptor idpDescr)
Maps a SAML2 IDPSSODescriptor to an eduGAIN IDPInterface object |
Organisation |
mapToOrganisation(org.opensaml.saml2.metadata.Organization org)
Maps a SAML2 Organization object to an eduGAIN Organisation object |
SPInterface |
mapToSPInterface(org.opensaml.saml2.metadata.SPSSODescriptor spDescr)
Maps a SAML2 SPSSODescriptor to an eduGAIN SPInterface object |
org.opensaml.xml.XMLObject |
unmarshallMetaData(java.lang.StringBuffer xmlsb)
Unmarhshalls the string representation of an OpenSAML2 metadata document to the DOM representaion of the document root |
| 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.io.UnmarshallerFactory unmarshallerFactory
private static org.slf4j.Logger log
| Constructor Detail |
|---|
public MetaDataUnmarshaller()
| Method Detail |
|---|
public org.opensaml.xml.XMLObject unmarshallMetaData(java.lang.StringBuffer xmlsb)
throws MetaQueryException
xmlsb - the string containing the metadata document
MetaQueryException
public FederationMetaData mapToFedMetaData(org.opensaml.saml2.metadata.EntitiesDescriptor entitiesDescr)
throws MetaQueryException
entitiesDescr - the SAML2 root element
eduGAINMetaQueryException
MetaQueryException
public BEMetaData mapToBEMetaData(org.opensaml.saml2.metadata.EntityDescriptor entityDescr)
throws MetaQueryException
entityDescr - the SAML2 root element
eduGAINMetaQueryException
MetaQueryExceptionpublic IDPInterface mapToIDPInterface(org.opensaml.saml2.metadata.IDPSSODescriptor idpDescr)
idpDescr - the SAML2 IDPSSODescriptor element
private AAInterface mapToAAInterface(org.opensaml.saml2.metadata.AttributeAuthorityDescriptor aaDescr)
aaDescr - the SAML2 AttributeAuthorityDescriptor element
public SPInterface mapToSPInterface(org.opensaml.saml2.metadata.SPSSODescriptor spDescr)
spDescr - the SAML2 SPSSODescriptor element
public CAInterface mapToCAInterface(OnlineCADescriptorType caDescr)
caDescr - the OnlineCADescriptorType element (SAML2 extension)
public Organisation mapToOrganisation(org.opensaml.saml2.metadata.Organization org)
org - the SAML2 Organization element
private HLPattern mapToHLPattern(org.opensaml.xml.XMLObject xmlobj)
throws MetaQueryException
xmlobj - the unrecognized object that holds data for HLPattern
MetaQueryException - when a needed attribute is missing in the XMLObjectpublic Contact mapToContact(org.opensaml.saml2.metadata.ContactPerson contactPers)
contactPers - the SAML2 ContactPerson element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||