Class AssertionData
- java.lang.Object
-
- org.certificateservices.messages.assertion.AssertionData
-
- Direct Known Subclasses:
ApprovalAssertionData,AuthorizationAssertionData,UserDataAssertionData
public abstract class AssertionData extends java.lang.ObjectAbstract base class of an parsed Assertion containing ID and validity dates.
-
-
Field Summary
Fields Modifier and Type Field Description protected AssertionPayloadParserassertionPayloadParserprotected java.lang.Stringidprotected java.util.DatenotBeforeprotected java.util.DatenotOnOrAfterprotected java.security.cert.X509CertificatesignCertificateprotected java.lang.StringsubjectId
-
Constructor Summary
Constructors Constructor Description AssertionData(AssertionPayloadParser assertionPayloadParser)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetId()java.util.DategetNotBefore()java.util.DategetNotOnOrAfter()java.security.cert.X509CertificategetSignCertificate()java.lang.StringgetSubjectId()inthashCode()abstract voidparse(javax.xml.bind.JAXBElement<AssertionType> assertion)Mehtod to parse a decrypted JAXBElement into an AssertionDataprotected voidparseCommonData(javax.xml.bind.JAXBElement<AssertionType> assertion)Parses the base values.
-
-
-
Field Detail
-
id
protected java.lang.String id
-
notBefore
protected java.util.Date notBefore
-
notOnOrAfter
protected java.util.Date notOnOrAfter
-
subjectId
protected java.lang.String subjectId
-
signCertificate
protected java.security.cert.X509Certificate signCertificate
-
assertionPayloadParser
protected AssertionPayloadParser assertionPayloadParser
-
-
Constructor Detail
-
AssertionData
public AssertionData(AssertionPayloadParser assertionPayloadParser)
-
-
Method Detail
-
parse
public abstract void parse(javax.xml.bind.JAXBElement<AssertionType> assertion) throws MessageContentException, MessageProcessingException
Mehtod to parse a decrypted JAXBElement into an AssertionData- Parameters:
assertion- the assertion to parse.- Throws:
MessageContentException- if content of the message was invalid.MessageProcessingException- in internal problems occurred parsing the data.
-
parseCommonData
protected void parseCommonData(javax.xml.bind.JAXBElement<AssertionType> assertion) throws MessageContentException, MessageProcessingException
Parses the base values.- Parameters:
assertion- the assertion to parse.- Throws:
MessageContentException- if content of the message was invalid.MessageProcessingException- in internal problems occurred parsing the data.
-
getId
public java.lang.String getId()
- Returns:
- unique id of assertion.
-
getNotBefore
public java.util.Date getNotBefore()
- Returns:
- the not before date this assertions i valid.
-
getNotOnOrAfter
public java.util.Date getNotOnOrAfter()
- Returns:
- the date this assertion expires.
-
getSubjectId
public java.lang.String getSubjectId()
- Returns:
- the unique subject id of the related user.
-
getSignCertificate
public java.security.cert.X509Certificate getSignCertificate()
- Returns:
- the certificate that signed the assertion
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-