|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.crypto.cms.CMSSigner
Groups together a signature signer and a group of certificates for use by CMS. This is
used in a CMSSignedDataOutputStream in the addSigner call.
CMSSignedDataOutputStream| Constructor Summary | ||
|
CMSSigner(SignatureSigner signer,
Certificate certificate)
Creates a CMSSigner object for use in a CMSSignedDataOutputStream. |
|
|
CMSSigner(SignatureSigner signer,
Certificate[] certificateChain)
Creates a CMSSigner for use in a CMS signed data output stream. |
|
| Method Summary | ||
|
boolean |
addAttribute(CMSAttribute attribute)
Add an attribute to the CMSSigner. |
|
Enumeration |
getAttributes()
Returns an Enumeration of the attributes associated with this signer. |
|
Certificate |
getCertificate()
Returns the end-entity certificate from the certificate chain, if present. |
|
Certificate[] |
getCertificateChain()
Returns the certificate chain, if present. |
|
Enumeration |
getSignedAttributes()
Returns an Enumeration of the signed attributes associated with this signer. |
|
SignatureSigner |
getSigner()
Returns the signature signer. |
|
Enumeration |
getUnsignedAttributes()
Returns an Enumeration of the unsigned attributes associated with this signer. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CMSSigner(SignatureSigner signer, Certificate certificate)
CMSSigner object for use in a CMSSignedDataOutputStream.
signer - The SignatureSigner to use to sign this message.certificate - The signer's certificate.public CMSSigner(SignatureSigner signer, Certificate[] certificateChain)
CMSSigner for use in a CMS signed data output stream.
signer - The SignatureSigner to use to sign this message.certificateChain - A chain of certificates when
certificateChain[0] is assumed to be the signer's
certificate. An IllegalArgumentException will be thrown if
this is argument is not specified correctly.| Method Detail |
public boolean addAttribute(CMSAttribute attribute)
CMSSigner.
These attributes will be written out in the CMS message.
attribute - The CMSAttribute to associate with this CMSSigner.public Enumeration getAttributes()
CMSAttributes ).public Certificate getCertificate()
Certificate. May be null.public Certificate[] getCertificateChain()
public Enumeration getSignedAttributes()
CMSAttributes ).public SignatureSigner getSigner()
SignatureSigner object.public Enumeration getUnsignedAttributes()
CMSAttributes ).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.