Class BaseWriter
java.lang.Object
org.keycloak.saml.processing.core.saml.v2.writers.BaseWriter
- Direct Known Subclasses:
SAMLAssertionWriter,SAMLMetadataWriter,SAMLRequestWriter,SAMLResponseWriter
Base Class for the Stax writers for SAML
- Since:
- Nov 2, 2010
- Author:
- Anil.Saldhana@redhat.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Stringprotected static final PicketLinkLoggerprotected static Stringprotected XMLStreamWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(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 Details
-
logger
-
PROTOCOL_PREFIX
-
ASSERTION_PREFIX
-
writer
-
-
Constructor Details
-
BaseWriter
-
-
Method Details
-
write
public void write(NameIDType nameIDType, QName tag, boolean writeNamespace) throws ProcessingException WriteNameIDTypeto stream- Parameters:
nameIDType-tag-out-- Throws:
ProcessingException
-
write
WriteNameIDTypeto stream without writing a namespace- Throws:
ProcessingException
-
write
Write anAttributeTypeto stream- Parameters:
attributeType-out-- Throws:
ProcessingException
-
writeAttributeTypeWithoutRootTag
public void writeAttributeTypeWithoutRootTag(AttributeType attributeType) throws ProcessingException - Throws:
ProcessingException
-
writeNameIDTypeAttributeValue
- Throws:
ProcessingException
-
writeStringAttributeValue
- Throws:
ProcessingException
-
writeDateAttributeValue
- Throws:
ProcessingException
-
writeLocalizedNameType
public void writeLocalizedNameType(LocalizedNameType localizedNameType, QName startElement) throws ProcessingException - Throws:
ProcessingException
-
write
write anSubjectTypeto stream- Parameters:
subject-out-- Throws:
ProcessingException
-
write
- Throws:
ProcessingException
-