Class OneTimeUseImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.ConditionAbstractImpl
-
- com.sun.identity.saml2.assertion.impl.OneTimeUseImpl
-
- All Implemented Interfaces:
ConditionAbstract,OneTimeUse
public class OneTimeUseImpl extends ConditionAbstractImpl implements OneTimeUse
TheOneTimeUseindicates that the assertion should be used immediately by the relying party and must not be retained for future use.
-
-
Field Summary
Fields Modifier and Type Field Description static StringONETIMEUSE_ELEMENT
-
Constructor Summary
Constructors Constructor Description OneTimeUseImpl()Default constructorOneTimeUseImpl(String xml)This constructor is used to buildOneTimeUseobject from a XML string.OneTimeUseImpl(Element element)This constructor is used to buildOneTimeUseobject from a block of existing XML that has already been built into a DOM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoXMLString()Returns a String representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation-
Methods inherited from class com.sun.identity.saml2.assertion.impl.ConditionAbstractImpl
isMutable, makeImmutable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.identity.saml2.assertion.ConditionAbstract
isMutable, makeImmutable
-
-
-
-
Field Detail
-
ONETIMEUSE_ELEMENT
public static final String ONETIMEUSE_ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OneTimeUseImpl
public OneTimeUseImpl()
Default constructor
-
OneTimeUseImpl
public OneTimeUseImpl(String xml) throws SAML2Exception
This constructor is used to buildOneTimeUseobject from a XML string.- Parameters:
xml- Ajava.lang.Stringrepresenting aOneTimeUseobject- Throws:
SAML2Exception- if it could not process the XML string
-
OneTimeUseImpl
public OneTimeUseImpl(Element element) throws SAML2Exception
This constructor is used to buildOneTimeUseobject from a block of existing XML that has already been built into a DOM.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forOneTimeUseobject- Throws:
SAML2Exception- if it could not process the Element
-
-
Method Detail
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns a String representation- Specified by:
toXMLStringin interfaceConditionAbstract- Parameters:
includeNSPrefix- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS- Determines whether or not the namespace is declared within the Element.- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation- Specified by:
toXMLStringin interfaceConditionAbstract- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
-