Class ApprovalAssertionData
- java.lang.Object
-
- org.certificateservices.messages.assertion.AssertionData
-
- org.certificateservices.messages.assertion.ApprovalAssertionData
-
public class ApprovalAssertionData extends AssertionData
Value object containing information about and Approval Assertion.
-
-
Field Summary
-
Fields inherited from class org.certificateservices.messages.assertion.AssertionData
assertionPayloadParser, id, notBefore, notOnOrAfter, signCertificate, subjectId
-
-
Constructor Summary
Constructors Constructor Description ApprovalAssertionData(AssertionPayloadParser assertionPayloadParser)Main Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetApprovalId()java.util.List<java.lang.String>getApprovalRequests()java.util.List<Approver>getApprovers()java.lang.StringgetDestinationId()voidparse(javax.xml.bind.JAXBElement<AssertionType> assertion)Main parser called by AssertionPayloadParser after decryption.java.lang.StringtoString()-
Methods inherited from class org.certificateservices.messages.assertion.AssertionData
equals, getId, getNotBefore, getNotOnOrAfter, getSignCertificate, getSubjectId, hashCode, parseCommonData
-
-
-
-
Constructor Detail
-
ApprovalAssertionData
public ApprovalAssertionData(AssertionPayloadParser assertionPayloadParser)
Main Constructor
-
-
Method Detail
-
parse
public void parse(javax.xml.bind.JAXBElement<AssertionType> assertion) throws MessageContentException, MessageProcessingException
Main parser called by AssertionPayloadParser after decryption.- Specified by:
parsein classAssertionData- Parameters:
assertion- the assertion to parse.- Throws:
MessageContentException- if content of the message was invalid.MessageProcessingException- in internal problems occurred parsing the data.
-
getApprovalId
public java.lang.String getApprovalId()
- Returns:
- the request unique approval id
-
getApprovalRequests
public java.util.List<java.lang.String> getApprovalRequests()
- Returns:
- list containing one or more AttributeValue with the digest values of the calculated request actions. It's up to the approval workflow engine to determine how the digest is calculated from an approval request and how to verify that subsequent request matches the given approval.
-
getDestinationId
public java.lang.String getDestinationId()
- Returns:
- the id to the target system processing the ticket. null for ANY destination.
-
getApprovers
public java.util.List<Approver> getApprovers()
- Returns:
- a list of approvers if available to the user, otherwise null.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-