Package com.sun.identity.saml2.common
Interface XmlSerializable
- 
- All Known Subinterfaces:
 Action,Action,Advice,Artifact,ArtifactResolve,ArtifactResponse,Assertion,AssertionIDRef,AssertionIDRequest,Attribute,Attribute,AttributeQuery,AttributeStatement,AudienceRestriction,AuthnContext,AuthnQuery,AuthnRequest,AuthnStatement,AuthzDecisionStatement,BaseID,Condition,ConditionAbstract,Conditions,Decision,ECPRelayState,ECPRequest,ECPResponse,EncryptedAssertion,EncryptedAttribute,EncryptedElement,EncryptedID,Environment,Evidence,Extensions,GetComplete,IDPEntry,IDPList,Issuer,KeyInfoConfirmationData,LogoutRequest,LogoutResponse,ManageNameIDRequest,ManageNameIDResponse,MissingAttributeDetail,NameID,NameIDMappingRequest,NameIDMappingResponse,NameIDPolicy,NameIDType,NewEncryptedID,NewID,Obligation,Obligations,OneTimeUse,ProxyRestriction,Request,RequestAbstract,RequestedAuthnContext,RequesterID,Resource,ResourceContent,Response,Response,Result,Scoping,SessionIndex,Statement,Status,Status,StatusCode,StatusCode,StatusDetail,StatusDetail,StatusMessage,StatusMessage,StatusResponse,Subject,Subject,SubjectConfirmation,SubjectConfirmationData,SubjectLocality,SubjectQueryAbstract,XACMLAuthzDecisionQuery,XACMLAuthzDecisionStatement
- All Known Implementing Classes:
 ActionImpl,AttributeImpl,DecisionImpl,EnvironmentImpl,ObligationImpl,ObligationsImpl,com.sun.identity.saml2.protocol.impl.RequestAbstractImpl,RequestImpl,ResourceImpl,StatusCodeImpl,StatusDetailImpl,StatusImpl,StatusMessageImpl,SubjectImpl,XACMLAuthzDecisionQueryImpl
@SupportedAll public interface XmlSerializable
Common super-interface for all SAML elements that can be serialized into XML. Implementations must implement either thetoDocumentFragment(Document, boolean, boolean)method (preferred) or thetoXMLString(boolean, boolean)method (only for compatibility). 
- 
- 
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default DocumentFragmenttoDocumentFragment(Document document, boolean includeNSPrefix, boolean declareNS)Serializes the element into an XMLDocumentFragment.default StringtoXMLString()Deprecated.UsetoDocumentFragment(Document, boolean, boolean)instead.default StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Deprecated.UsetoDocumentFragment(Document, boolean, boolean)instead. 
 - 
 
- 
- 
Method Detail
- 
toDocumentFragment
default DocumentFragment toDocumentFragment(Document document, boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Serializes the element into an XMLDocumentFragment. A default implementation is provided for compatibility with legacy code that implementstoXMLString(), but it is highly recommended to override this method.- Parameters:
 document- the parentDocumentto create the document fragment from.includeNSPrefix- whether to include a namespace prefix in the document elements.declareNS- whether to declare any namespaces or assume that they are already declared.- Returns:
 - the XML document fragment representing this SAML2 element.
 - Throws:
 SAML2Exception- if the element cannot be serialized for any reason.
 
- 
toXMLString
@Deprecated default String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Deprecated.UsetoDocumentFragment(Document, boolean, boolean)instead.Returns an XML String representation of this element.- Parameters:
 includeNSPrefix- Determines whether or not the namespace qualifier is prepended to the Element when converted.declareNS- Determines whether or not the namespace is declared within the Element.- Returns:
 - A String representation.
 - Throws:
 SAML2Exception- if something went wrong during conversion
 
- 
toXMLString
@Deprecated default String toXMLString() throws SAML2Exception
Deprecated.UsetoDocumentFragment(Document, boolean, boolean)instead.Returns an XML String representation of this element.- Returns:
 - A String representation.
 - Throws:
 SAML2Exception- if something went wrong during conversion.
 
 - 
 
 -