Author: anil.saldhana(a)jboss.com
Date: 2010-11-08 14:33:44 -0500 (Mon, 08 Nov 2010)
New Revision: 544
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/writers/WSTrustRSTWriter.java
Log:
add javadoc
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/writers/WSTrustRSTWriter.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/writers/WSTrustRSTWriter.java 2010-11-08
18:17:09 UTC (rev 543)
+++
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/writers/WSTrustRSTWriter.java 2010-11-08
19:33:44 UTC (rev 544)
@@ -157,6 +157,11 @@
StaxUtil.flush( writer );
}
+ /**
+ * Write an {@code EntropyType} to stream
+ * @param entropy
+ * @throws ProcessingException
+ */
private void writeEntropyType(EntropyType entropy) throws ProcessingException
{
StaxUtil.writeStartElement( writer, PREFIX, WSTrustConstants.ENTROPY,
BASE_NAMESPACE);
@@ -176,6 +181,11 @@
StaxUtil.writeEndElement( writer );
}
+ /**
+ * Write an {@code UseKeyType} to stream
+ * @param useKeyType
+ * @throws ProcessingException
+ */
private void writeUseKeyType(UseKeyType useKeyType) throws ProcessingException
{
Object useKeyTypeValue = useKeyType.getAny();
@@ -188,6 +198,12 @@
throw new RuntimeException( " Unknown use key type:" +
useKeyTypeValue.getClass().getName() );
}
+ /**
+ * Write an {@code OnBehalfOfType} to stream
+ * @param onBehalfOf
+ * @param out
+ * @throws ProcessingException
+ */
private void writeOnBehalfOfType(OnBehalfOfType onBehalfOf, OutputStream out) throws
ProcessingException
{
StaxUtil.writeStartElement( writer, PREFIX, WSTrustConstants.On_BEHALF_OF,
BASE_NAMESPACE);
@@ -199,6 +215,12 @@
StaxUtil.writeEndElement( writer );
}
+ /**
+ * Write an {@code ValidateTargetType} to stream
+ * @param validateTarget
+ * @param out
+ * @throws ProcessingException
+ */
private void writeValidateTargetType(ValidateTargetType validateTarget, OutputStream
out) throws ProcessingException
{
StaxUtil.writeStartElement( writer, PREFIX, WSTrustConstants.VALIDATE_TARGET,
BASE_NAMESPACE);
@@ -216,6 +238,12 @@
StaxUtil.writeEndElement( writer );
}
+ /**
+ * Write an {@code CancelTargetType} to Stream
+ * @param cancelTarget
+ * @param out
+ * @throws ProcessingException
+ */
private void writeCancelTargetType(CancelTargetType cancelTarget, OutputStream out)
throws ProcessingException
{
StaxUtil.writeStartElement( writer, PREFIX, WSTrustConstants.CANCEL_TARGET,
BASE_NAMESPACE);
@@ -248,6 +276,12 @@
StaxUtil.writeEndElement(writer);
}
+ /**
+ * Write a Request Type
+ * @param writer
+ * @param uri
+ * @throws ProcessingException
+ */
private void writeRequestType( XMLStreamWriter writer , URI uri ) throws
ProcessingException
{
StaxUtil.writeStartElement( writer, PREFIX, WSTrustConstants.REQUEST_TYPE,
BASE_NAMESPACE );
@@ -255,6 +289,12 @@
StaxUtil.writeEndElement(writer);
}
+ /**
+ * Write Token Type
+ * @param writer
+ * @param uri
+ * @throws ProcessingException
+ */
private void writeTokenType( XMLStreamWriter writer , URI uri ) throws
ProcessingException
{
StaxUtil.writeStartElement( writer, PREFIX, WSTrustConstants.TOKEN_TYPE,
BASE_NAMESPACE );
Show replies by date