Class BaseWriter
- java.lang.Object
-
- org.keycloak.saml.processing.core.saml.v2.writers.BaseWriter
-
- Direct Known Subclasses:
SAMLAssertionWriter,SAMLMetadataWriter,SAMLRequestWriter,SAMLResponseWriter
public class BaseWriter extends Object
Base Class for the Stax writers for SAML- Since:
- Nov 2, 2010
- Author:
- Anil.Saldhana@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringASSERTION_PREFIXprotected static PicketLinkLoggerloggerprotected static StringPROTOCOL_PREFIXprotected XMLStreamWriterwriter
-
Constructor Summary
Constructors Constructor Description BaseWriter(XMLStreamWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(AttributeType attributeType)Write anAttributeTypeto streamvoidwrite(NameIDType nameIDType, QName tag)WriteNameIDTypeto stream without writing a namespacevoidwrite(NameIDType nameIDType, QName tag, boolean writeNamespace)WriteNameIDTypeto streamvoidwrite(SubjectType subject)write anSubjectTypeto streamvoidwrite(ExtensionsType extensions)voidwriteAttributeTypeWithoutRootTag(AttributeType attributeType)voidwriteDateAttributeValue(XMLGregorianCalendar attributeValue)voidwriteLocalizedNameType(LocalizedNameType localizedNameType, QName startElement)voidwriteNameIDTypeAttributeValue(NameIDType attributeValue)voidwriteStringAttributeValue(String attributeValue)
-
-
-
Field Detail
-
logger
protected static final PicketLinkLogger logger
-
PROTOCOL_PREFIX
protected static String PROTOCOL_PREFIX
-
ASSERTION_PREFIX
protected static String ASSERTION_PREFIX
-
writer
protected XMLStreamWriter writer
-
-
Constructor Detail
-
BaseWriter
public BaseWriter(XMLStreamWriter writer)
-
-
Method Detail
-
write
public void write(NameIDType nameIDType, QName tag, boolean writeNamespace) throws ProcessingException
WriteNameIDTypeto stream- Parameters:
nameIDType-tag-out-- Throws:
ProcessingException
-
write
public void write(NameIDType nameIDType, QName tag) throws ProcessingException
WriteNameIDTypeto stream without writing a namespace- Throws:
ProcessingException
-
write
public void write(AttributeType attributeType) throws ProcessingException
Write anAttributeTypeto stream- Parameters:
attributeType-out-- Throws:
ProcessingException
-
writeAttributeTypeWithoutRootTag
public void writeAttributeTypeWithoutRootTag(AttributeType attributeType) throws ProcessingException
- Throws:
ProcessingException
-
writeNameIDTypeAttributeValue
public void writeNameIDTypeAttributeValue(NameIDType attributeValue) throws ProcessingException
- Throws:
ProcessingException
-
writeStringAttributeValue
public void writeStringAttributeValue(String attributeValue) throws ProcessingException
- Throws:
ProcessingException
-
writeDateAttributeValue
public void writeDateAttributeValue(XMLGregorianCalendar attributeValue) throws ProcessingException
- Throws:
ProcessingException
-
writeLocalizedNameType
public void writeLocalizedNameType(LocalizedNameType localizedNameType, QName startElement) throws ProcessingException
- Throws:
ProcessingException
-
write
public void write(SubjectType subject) throws ProcessingException
write anSubjectTypeto stream- Parameters:
subject-out-- Throws:
ProcessingException
-
write
public void write(ExtensionsType extensions) throws ProcessingException
- Throws:
ProcessingException
-
-