Class LogoutRequestImpl
- java.lang.Object
-
- com.sun.identity.saml2.protocol.impl.RequestAbstractImpl
-
- com.sun.identity.saml2.protocol.impl.LogoutRequestImpl
-
- All Implemented Interfaces:
LogoutRequest,RequestAbstract
public class LogoutRequestImpl extends RequestAbstractImpl implements LogoutRequest
This class implements theLogoutRequestelement in SAML protocol schema. It provides all the methods required byLogoutRequest
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml2.protocol.impl.RequestAbstractImpl
consent, destinationURI, elementName, extensions, isMutable, isSignatureValid, isSigned, issueInstant, nameID, publicKey, requestId, signatureString, signedXMLString, version
-
-
Constructor Summary
Constructors Constructor Description LogoutRequestImpl()Constructs theLogoutRequestObject.LogoutRequestImpl(String xmlString)Constructs theLogoutRequestObject.LogoutRequestImpl(Element element)Constructs theLogoutRequestObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseIDgetBaseID()Returns the value of the baseID property.EncryptedIDgetEncryptedID()Returns the value of the encryptedID property.NameIDgetNameID()Returns the value of the nameID property.DategetNotOnOrAfter()Returns the value of the notOnOrAfter property.StringgetReason()Returns the value of the reason property.ListgetSessionIndex()Returns the value of the SessionIndex property.booleanisMutable()Returns true if object is mutable.voidmakeImmutable()Makes this object immutable.voidsetBaseID(BaseID value)Sets the value of the baseID property.voidsetEncryptedID(EncryptedID value)Sets the value of the encryptedID property.voidsetNameID(NameID value)Sets the value of the nameID property.voidsetNotOnOrAfter(Date value)Sets the value of the notOnOrAfter property.voidsetReason(String value)Sets the value of the reason property.voidsetSessionIndex(List sessionIndexList)Sets the value of the SessionIndex property.StringtoXMLString()Returns theLogoutRequestin an XML document String format based on theLogoutRequestschema described above.StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns theLogoutRequestin an XML document String format based on theLogoutRequestschema described above.-
Methods inherited from class com.sun.identity.saml2.protocol.impl.RequestAbstractImpl
getAttributesString, getConsent, getDestination, getElements, getExtensions, getID, getIssueInstant, getIssuer, getSignature, getVersion, getXMLString, isSignatureValid, isSigned, parseDOMAttributes, parseDOMChileElements, parseDOMElement, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersion, sign, validateData, validateID, validateIssueInstant, validateVersion
-
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.protocol.RequestAbstract
getConsent, getDestination, getExtensions, getID, getIssueInstant, getIssuer, getSignature, getVersion, isSignatureValid, isSigned, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersion, sign
-
-
-
-
Constructor Detail
-
LogoutRequestImpl
public LogoutRequestImpl()
Constructs theLogoutRequestObject.
-
LogoutRequestImpl
public LogoutRequestImpl(Element element) throws SAML2Exception
Constructs theLogoutRequestObject.- Parameters:
element- the Document Element ofLogoutRequestobject.- Throws:
SAML2Exception- ifLogoutRequestcannot be created.
-
LogoutRequestImpl
public LogoutRequestImpl(String xmlString) throws SAML2Exception
Constructs theLogoutRequestObject.- Parameters:
xmlString- the XML String representation of this object.- Throws:
SAML2Exception- ifLogoutRequestcannot be created.
-
-
Method Detail
-
getNotOnOrAfter
public Date getNotOnOrAfter()
Returns the value of the notOnOrAfter property.- Specified by:
getNotOnOrAfterin interfaceLogoutRequest- Returns:
java.util.Datevalue of the notOnOrAfter property- See Also:
setNotOnOrAfter(Date)
-
setNotOnOrAfter
public void setNotOnOrAfter(Date value) throws SAML2Exception
Sets the value of the notOnOrAfter property.- Specified by:
setNotOnOrAfterin interfaceLogoutRequest- Parameters:
value-java.util.Datevalue of the notOnOrAfter property to be set- Throws:
SAML2Exception- if the object is immutable- See Also:
getNotOnOrAfter()
-
getReason
public String getReason()
Returns the value of the reason property.- Specified by:
getReasonin interfaceLogoutRequest- Returns:
Stringvalue of the reason property- See Also:
setReason(String)
-
setReason
public void setReason(String value) throws SAML2Exception
Sets the value of the reason property.- Specified by:
setReasonin interfaceLogoutRequest- Parameters:
value-Stringvalue of the reason property to be set- Throws:
SAML2Exception- if the object is immutable- See Also:
getReason()
-
getEncryptedID
public EncryptedID getEncryptedID()
Returns the value of the encryptedID property.- Specified by:
getEncryptedIDin interfaceLogoutRequest- Returns:
- the value of the encryptedID property
- See Also:
setEncryptedID(EncryptedID)
-
setEncryptedID
public void setEncryptedID(EncryptedID value) throws SAML2Exception
Sets the value of the encryptedID property.- Specified by:
setEncryptedIDin interfaceLogoutRequest- Parameters:
value- the value of the encryptedID property to be set- Throws:
SAML2Exception- if the object is immutable- See Also:
getEncryptedID()
-
getNameID
public NameID getNameID()
Returns the value of the nameID property.- Specified by:
getNameIDin interfaceLogoutRequest- Returns:
- the value of the nameID property
- See Also:
setNameID(NameID)
-
setNameID
public void setNameID(NameID value) throws SAML2Exception
Sets the value of the nameID property.- Specified by:
setNameIDin interfaceLogoutRequest- Parameters:
value- the value of the nameID property to be set- Throws:
SAML2Exception- if the object is immutable- See Also:
getNameID()
-
getBaseID
public BaseID getBaseID()
Returns the value of the baseID property.- Specified by:
getBaseIDin interfaceLogoutRequest- Returns:
- the value of the baseID property
- See Also:
setBaseID(BaseID)
-
setBaseID
public void setBaseID(BaseID value) throws SAML2Exception
Sets the value of the baseID property.- Specified by:
setBaseIDin interfaceLogoutRequest- Parameters:
value- the value of the baseID property to be set- Throws:
SAML2Exception- if the object is immutable- See Also:
getBaseID()
-
getSessionIndex
public List getSessionIndex()
Returns the value of the SessionIndex property.- Specified by:
getSessionIndexin interfaceLogoutRequest- Returns:
- A list containing objects of type
java.lang.String - See Also:
setSessionIndex(List)
-
setSessionIndex
public void setSessionIndex(List sessionIndexList) throws SAML2Exception
Sets the value of the SessionIndex property.- Specified by:
setSessionIndexin interfaceLogoutRequest- Parameters:
sessionIndexList- A list containing objects of typejava.lang.String- Throws:
SAML2Exception- if the object is immutable- See Also:
getSessionIndex()
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns theLogoutRequestin an XML document String format based on theLogoutRequestschema described above.- Specified by:
toXMLStringin interfaceRequestAbstract- Overrides:
toXMLStringin classRequestAbstractImpl- Returns:
- An XML String representing the
LogoutRequest. - Throws:
SAML2Exception- if some error occurs during conversion toString.
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns theLogoutRequestin an XML document String format based on theLogoutRequestschema described above.- Specified by:
toXMLStringin interfaceRequestAbstract- Overrides:
toXMLStringin classRequestAbstractImpl- 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 XML String representing the
LogoutRequest. - Throws:
SAML2Exception- if some error occurs during conversion toString.
-
makeImmutable
public void makeImmutable()
Makes this object immutable.- Specified by:
makeImmutablein interfaceRequestAbstract- Overrides:
makeImmutablein classRequestAbstractImpl
-
isMutable
public boolean isMutable()
Returns true if object is mutable.- Specified by:
isMutablein interfaceRequestAbstract- Overrides:
isMutablein classRequestAbstractImpl- Returns:
- true if object is immutable.
-
-