java.lang.Object
org.mozilla.jss.netscape.security.pkcs.PKCS7

public class PKCS7 extends Object
PKCS7 as defined in RSA Laboratories PKCS7 Technical Note. Profile Supports only SignedData ContentInfo type, where to the type of data signed is plain Data. For signedData, crls, attributes and PKCS#6 Extended Certificates are not supported.
  • Field Details

  • Constructor Details

    • PKCS7

      public PKCS7(InputStream in) throws ParsingException, IOException
      Unmarshals a PKCS7 block from its encoded form, parsing the encoded bytes from the InputStream.
      Parameters:
      in - an input stream holding at least one PKCS7 block.
      Throws:
      ParsingException - on parsing errors.
      IOException - on other errors.
    • PKCS7

      public PKCS7(DerInputStream derin) throws ParsingException
      Unmarshals a PKCS7 block from its encoded form, parsing the encoded bytes from the DerInputStream.
      Parameters:
      derin - a DerInputStream holding at least one PKCS7 block.
      Throws:
      ParsingException - on parsing errors.
    • PKCS7

      public PKCS7(byte[] bytes) throws ParsingException
      Unmarshals a PKCS7 block from its encoded form, parsing the encoded bytes.
      Parameters:
      bytes - the encoded bytes.
      Throws:
      ParsingException - on parsing errors.
    • PKCS7

      public PKCS7(String input) throws ParsingException, IOException
      Unmarshals a PKCS7 block from PEM format.
      Parameters:
      input - the PKCS7 block in PEM format.
      Throws:
      ParsingException - on parsing errors.
      IOException
    • PKCS7

      public PKCS7(AlgorithmId[] digestAlgorithmIds, ContentInfo contentInfo, X509Certificate[] certificates, SignerInfo[] signerInfos)
      Construct an initialized PKCS7 block.
      Parameters:
      digestAlgorithmIds - the message digest algorithm identifiers.
      contentInfo - the content information.
      certificates - an array of X.509 certificates.
      signerInfos - an array of signer information.
    • PKCS7

      public PKCS7(X509Certificate[] certs)
      Construct PKCS7 from an array of certificates.
      Parameters:
      certs - Array of certificates.
  • Method Details