es.caib.signatura.api
Interface SMIMEParser

All Known Implementing Classes:
SMIMEParserProxy

public interface SMIMEParser

Interface to access to a SMIME document parser.

Author:
u91940

Method Summary
 SMIMEParser getInstance(java.io.InputStream smime)
          Returns a SMIME document parser.
 Signature[] getSignatures()
          Gets an array that contains all the signatures of the SMIME document.
 java.lang.Object getSignedObject()
          Returns the signed object that contains the SMIME document.
 void parse(java.io.InputStream mimeIS)
          This method parses an SMIME document.
 

Method Detail

getInstance

SMIMEParser getInstance(java.io.InputStream smime)
                        throws java.lang.InstantiationException,
                               java.lang.IllegalAccessException,
                               java.io.IOException,
                               SignatureException
Returns a SMIME document parser.

Parameters:
smime - SMIME document to parse.
Returns:
the SMIME parser.
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.io.IOException
SignatureException

parse

void parse(java.io.InputStream mimeIS)
           throws java.lang.InstantiationException,
                  java.lang.IllegalAccessException,
                  java.io.IOException,
                  SignatureException
This method parses an SMIME document.

Parameters:
mimeIS - Document to parse.
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.io.IOException
SignatureException

getSignedObject

java.lang.Object getSignedObject()
Returns the signed object that contains the SMIME document.

Returns:
The signed object (as a byte array).

getSignatures

Signature[] getSignatures()
Gets an array that contains all the signatures of the SMIME document.

Returns:
The signatures of the SMIME document.


Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.