def __init__(self, code=None, message=None):
super(RevocationReason, self).__init__(tag=Tags.REVOCATION_REASON)<EOL>if code is not None:<EOL><INDENT>self.revocation_code = RevocationReasonCode(value=code)<EOL><DEDENT>else:<EOL><INDENT>self.revocation_code = RevocationReasonCode()<EOL><DEDENT>if message is not None:<EOL><INDENT>self.revocation_message = TextString(<EOL>value=message,<EOL>tag=Tags.REVOCATION_MESSAGE)<EOL><DEDENT>else:<EOL><INDENT>self.revocation_message = None<EOL><DEDENT>self.validate()<EOL>
Construct a RevocationReason object.

Parameters:
    code(RevocationReasonCode): revocation reason code
    message(string): An optional revocation message