net.rim.device.api.crypto.cms
Class CMSContext

Implements a "two stage" method of processing CMS messages. The CMSContext holds the partially
initialized CMSInputStream, from a getCMSContext call, until a further call in CMSInputStream to getCMSInputStream,
finishes the processing.

Category:

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

isEncrypted

public boolean isEncrypted()

Determines if this part, or any nested part, of this CMS message is
encrypted.

Returns:

A boolean that represents whether the message part is encrypted.

Since:

JDE 4.0.0

Category:

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

isSigned

public boolean isSigned()

Determines if this part, or any nested part, of this CMS message is
signed. Note that since the user has not entered their password yet, this boolean
may be false when actually, an inner part of the message is signed. This may
happen if the outer layer is encrypted and the inner layer is signed. Since the user hasn't
entered their password to decrypt the message, we won't know that the inner part is signed.

Returns:

A boolean that represents whether the message part is signed.

Since:

JDE 4.0.0

Category:

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.