public abstract class StatusResponseImpl extends Object implements StatusResponse
Modifier and Type | Field and Description |
---|---|
protected String |
consent |
protected String |
destination |
protected Extensions |
extensions |
protected String |
inResponseTo |
protected boolean |
isMutable |
protected Boolean |
isSignatureValid |
protected boolean |
isSigned |
protected Date |
issueInstant |
protected Issuer |
issuer |
protected PublicKey |
publicKey |
protected String |
responseId |
protected String |
signatureString |
protected String |
signedXMLString |
protected Status |
status |
protected String |
version |
Constructor and Description |
---|
StatusResponseImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getConsent()
Returns the value of the consent property.
|
String |
getDestination()
Returns the value of the destination property.
|
Extensions |
getExtensions()
Returns the value of the extensions property.
|
String |
getID()
Returns the value of the id property.
|
String |
getInResponseTo()
Returns the value of the inResponseTo property.
|
Date |
getIssueInstant()
Returns the value of the issueInstant property.
|
Issuer |
getIssuer()
Returns the value of the issuer property.
|
String |
getSignature()
Returns the signature element, the
StatusResponse contains
as String . |
Status |
getStatus()
Returns the value of the status property.
|
String |
getVersion()
Returns the value of the version property.
|
boolean |
isMutable()
Returns true if object is mutable.
|
boolean |
isSignatureValid(Set<X509Certificate> verificationCerts)
Returns whether the signature on the
StatusResponse
is valid or not. |
boolean |
isSigned()
Returns whether the
StatusResponse is signed or not. |
void |
makeImmutable()
Makes this object immutable.
|
void |
setConsent(String value)
Sets the value of the consent property.
|
void |
setDestination(String value)
Sets the value of the destination property.
|
void |
setExtensions(Extensions value)
Sets the value of the extensions property.
|
void |
setID(String value)
Sets the value of the id property.
|
void |
setInResponseTo(String value)
Sets the value of the inResponseTo property.
|
void |
setIssueInstant(Date value)
Sets the value of the issueInstant property.
|
void |
setIssuer(Issuer value)
Sets the value of the issuer property.
|
void |
setStatus(Status value)
Sets the value of the status property.
|
void |
setVersion(String value)
Sets the value of the version property.
|
void |
sign(PrivateKey privateKey,
X509Certificate cert)
Signs the StatusResponse
|
String |
toXMLString()
Returns the
StatusResponse in an XML document String format
based on the StatusResponse schema described above. |
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns the
StatusResponse in an XML document String format
based on the StatusResponse schema described above. |
protected void |
validateData() |
protected void |
validateID(String responseId) |
protected void |
validateIssueInstant(String issueInstantStr) |
protected void |
validateStatus() |
protected void |
validateVersion(String version) |
protected String version
protected Date issueInstant
protected String destination
protected String signatureString
protected Extensions extensions
protected String consent
protected String inResponseTo
protected Status status
protected String responseId
protected Issuer issuer
protected boolean isSigned
protected Boolean isSignatureValid
protected boolean isMutable
protected PublicKey publicKey
protected String signedXMLString
public String getVersion()
getVersion
in interface StatusResponse
setVersion(String)
public void setVersion(String value) throws SAML2Exception
setVersion
in interface StatusResponse
value
- the value of the version property to be setSAML2Exception
- if the object is immutablegetVersion()
public Date getIssueInstant()
getIssueInstant
in interface StatusResponse
setIssueInstant(java.util.Date)
public void setIssueInstant(Date value) throws SAML2Exception
setIssueInstant
in interface StatusResponse
value
- the value of the issueInstant property to be setSAML2Exception
- if the object is immutablegetIssueInstant()
public String getDestination()
getDestination
in interface StatusResponse
setDestination(String)
public void setDestination(String value) throws SAML2Exception
setDestination
in interface StatusResponse
value
- the value of the destination property to be setSAML2Exception
- if the object is immutablegetDestination()
public String getSignature()
StatusResponse
contains
as String
.
It returns null if the StatusResponse
has no signature.getSignature
in interface StatusResponse
String
representation of the signature.public void sign(PrivateKey privateKey, X509Certificate cert) throws SAML2Exception
sign
in interface StatusResponse
privateKey
- Signing keycert
- Certificate which contain the public key correlated to
the signing key; It if is not null, then the signature
will include the certificate; Otherwise, the signature
will not include any certificate.SAML2Exception
- if it could not sign the Request.public Extensions getExtensions()
getExtensions
in interface StatusResponse
setExtensions(Extensions)
public void setExtensions(Extensions value) throws SAML2Exception
setExtensions
in interface StatusResponse
value
- the value of the extensions property to be setSAML2Exception
- if the object is immutablegetExtensions()
public String getConsent()
getConsent
in interface StatusResponse
setConsent(String)
public void setConsent(String value) throws SAML2Exception
setConsent
in interface StatusResponse
value
- the value of the consent property to be setSAML2Exception
- if the object is immutablegetConsent()
public String getInResponseTo()
getInResponseTo
in interface StatusResponse
setInResponseTo(String)
public void setInResponseTo(String value) throws SAML2Exception
setInResponseTo
in interface StatusResponse
value
- the value of the inResponseTo property to be setSAML2Exception
- if the object is immutablegetInResponseTo()
public Status getStatus()
getStatus
in interface StatusResponse
setStatus(Status)
public void setStatus(Status value) throws SAML2Exception
setStatus
in interface StatusResponse
value
- the value of the status property to be setSAML2Exception
- if the object is immutablegetStatus()
public String getID()
getID
in interface StatusResponse
setID(String)
public void setID(String value) throws SAML2Exception
setID
in interface StatusResponse
value
- the value of the id property to be setSAML2Exception
- if the object is immutablegetID()
public Issuer getIssuer()
getIssuer
in interface StatusResponse
setIssuer(Issuer)
public void setIssuer(Issuer value) throws SAML2Exception
setIssuer
in interface StatusResponse
value
- the value of the issuer property to be setSAML2Exception
- if the object is immutablegetIssuer()
public boolean isSigned()
StatusResponse
is signed or not.isSigned
in interface StatusResponse
StatusResponse
is signed.public boolean isSignatureValid(Set<X509Certificate> verificationCerts) throws SAML2Exception
StatusResponse
StatusResponse
is valid or not.isSignatureValid
in interface StatusResponse
verificationCerts
- Certificates containing the public keys which may be used for signature verification;
This certificate may also may be used to check against the certificate included in the
signature.SAML2Exception
- if the signature could not be verifiedpublic String toXMLString() throws SAML2Exception
StatusResponse
in an XML document String format
based on the StatusResponse
schema described above.toXMLString
in interface StatusResponse
StatusResponse
.SAML2Exception
- if some error occurs during conversion to
String
.public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
StatusResponse
in an XML document String format
based on the StatusResponse
schema described above.toXMLString
in interface StatusResponse
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.StatusResponse
.SAML2Exception
- if some error occurs during conversion to
String
.public void makeImmutable()
makeImmutable
in interface StatusResponse
public boolean isMutable()
isMutable
in interface StatusResponse
protected void validateID(String responseId) throws SAML2Exception
SAML2Exception
protected void validateVersion(String version) throws SAML2Exception
SAML2Exception
protected void validateIssueInstant(String issueInstantStr) throws SAML2Exception
SAML2Exception
protected void validateStatus() throws SAML2Exception
SAML2Exception
protected void validateData() throws SAML2Exception
SAML2Exception
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.