demo.x509.qualified
Class MyPrivateQCStatement

java.lang.Object
  |
  +--iaik.x509.extensions.qualified.structures.QCStatementInfo
        |
        +--demo.x509.qualified.MyPrivateQCStatement

public class MyPrivateQCStatement
extends QCStatementInfo

Implements a private QCStatement.

This class demonstrates how private QCStatements may be implemented by extending the QCStatementInfo class. For using this private statement it has to be registered within the QCStatement framework:

 QCStatement.register(MyPrivateQCStatement.statementID, MyPrivateQCStatement.class);
 
See the QualifiedCert demo on how to use.

The ASN.1 structure of the statement info belonging to this private QCStatement is rather simple and only consists of a PrintableString holding a statement message:

 statementMessage ::= PrintableString
 

Version:
File Revision 9

Field Summary
static ObjectID statementID
          The statement id for this private QC statement.
 
Constructor Summary
MyPrivateQCStatement()
          Default constructor.
MyPrivateQCStatement(String statement)
          Creates a private QC statement for the given statement string.
 
Method Summary
 void decode(ASN1Object obj)
          Decodes the statement info.
 String getStatement()
          Gets the statement message.
 ObjectID getStatementID()
          Returns the statement ID.
 ASN1Object toASN1Object()
          Returns an ASN.1 representation of this statement info.
 String toString()
          Returns a string representation of the statement info
 
Methods inherited from class iaik.x509.extensions.qualified.structures.QCStatementInfo
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statementID

public static final ObjectID statementID
The statement id for this private QC statement.
Constructor Detail

MyPrivateQCStatement

public MyPrivateQCStatement()
Default constructor.

MyPrivateQCStatement

public MyPrivateQCStatement(String statement)
Creates a private QC statement for the given statement string.
Parameters:
statement - the statement message
Method Detail

getStatementID

public ObjectID getStatementID()
Returns the statement ID.
Overrides:
getStatementID in class QCStatementInfo
Returns:
the statement id

getStatement

public String getStatement()
Gets the statement message.
Returns:
the statement message

decode

public void decode(ASN1Object obj)
Decodes the statement info.
Overrides:
decode in class QCStatementInfo
Parameters:
the - statement info as ASN1Object

toASN1Object

public ASN1Object toASN1Object()
Returns an ASN.1 representation of this statement info.
Overrides:
toASN1Object in class QCStatementInfo
Returns:
this statement info as ASN1Object

toString

public String toString()
Returns a string representation of the statement info
Overrides:
toString in class QCStatementInfo
Returns:
a string representation of the statement info

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK