| 
					
  		
		 	IAIK CMS/SMIME Toolkit API Documentation
			 Version 6.1  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectiaik.smime.ess.utils.ESSUtil
public class ESSUtil
Some ESS utils.
| Method Summary | |
|---|---|
static boolean | 
compareGeneralName(iaik.asn1.structures.GeneralName gn1,
                   iaik.asn1.structures.GeneralName gn2)
Compares two GeneralName objects.  | 
static boolean | 
compareGeneralNames(iaik.asn1.structures.GeneralNames gns1,
                    iaik.asn1.structures.GeneralNames gns2)
Compares two GeneralNames objects.  | 
static iaik.x509.X509Certificate | 
convertCertificate(java.security.cert.Certificate certificate)
Converts the given X.509 certificate into an iaik.x509.X509Certificate.  | 
static java.security.cert.X509Certificate | 
convertCertificate(java.security.cert.Certificate certificate,
                   java.lang.String provider)
Converts the given X509Certificate into a X509Certificate object of the requested provider.  | 
static iaik.x509.X509Certificate[] | 
convertCertificateChain(java.security.cert.Certificate[] certificateChain)
Converts the given X.509 certificate array into an array iaik.x509.X509Certificate objects.  | 
static java.security.cert.X509Certificate[] | 
convertCertificateChain(java.security.cert.Certificate[] certificateChain,
                        java.lang.String provider)
Converts an array of X509Certificates into an array of X509Certificate objects of the requested provider.  | 
static java.security.Key | 
convertKey(java.security.Key key,
           java.lang.String provider)
Converts the given key into a key object of the requested provider.  | 
static iaik.asn1.structures.GeneralName | 
createGeneralName(java.lang.String email)
Creates a GeneralName of type rfc822Name from the given email address.  | 
static iaik.asn1.structures.GeneralNames | 
createGeneralNames(java.lang.String email)
Creates a GeneralNames conatining one GeneralName of type rfc822Name with the given email address.  | 
static iaik.asn1.structures.AttributeValue | 
getAttributeValue(SignedContent signedContent,
                  iaik.asn1.ObjectID attributeType,
                  boolean checkIfAllIdentical)
Returns the attribute value belonging to the specified attribute type if included in the given SignedContent.  | 
static iaik.asn1.structures.AttributeValue | 
getAttributeValue(SignedContent signedContent,
                  iaik.asn1.ObjectID attributeType,
                  boolean checkIfAllIdentical,
                  boolean checkIfIncluedInAllSignerInfos)
Returns the attribute value belonging to the specified attribute type if included in the given SignedContent.  | 
static iaik.asn1.structures.AttributeValue | 
getAttributeValue(SignerInfo[] signerInfos,
                  iaik.asn1.ObjectID attributeType,
                  boolean checkIfAllIdentical)
Returns the attribute value belonging to the specified attribute type if included in the set of given SignerInfos.  | 
static iaik.asn1.structures.AttributeValue | 
getAttributeValue(SignerInfo[] signerInfos,
                  iaik.asn1.ObjectID attributeType,
                  boolean checkIfAllIdentical,
                  boolean checkIfIncluedInAllSignerInfos)
Returns the attribute value belonging to the specified attribute type if included in the set of given SignerInfos.  | 
static EquivalentLabels | 
getEquivalentLabels(SignedContent signedContent)
Returns the EquivalentLabels attribute if included in the given SignedContent.  | 
static EquivalentLabels | 
getEquivalentLabels(SignerInfo[] signerInfos)
Returns the EquivalentLabels attribute if included in the set of given SignerInfos.  | 
static ESSSecurityLabel | 
getESSSecurityLabel(SignedContent signedContent)
Returns the ESSSecurityLabel attribute if included in the given SignedContent.  | 
static ESSSecurityLabel | 
getESSSecurityLabel(SignerInfo[] signerInfos)
Returns the ESSSecurityLabel attribute if included in the set of given SignerInfos.  | 
static SignerInfo | 
getFirstSignerInfoWithAttribute(SignedContent signedContent,
                                iaik.asn1.ObjectID attributeType)
Returns the first SignerInfo included in the given SignedContent object that contains a signed attribute of the specified attribute type.  | 
static SignerInfo | 
getFirstSignerInfoWithAttribute(SignerInfo[] signerInfos,
                                iaik.asn1.ObjectID attributeType)
Returns the first SignerInfo of the given array that contains a signed attribute of the specified attribute type.  | 
static java.lang.String[] | 
getMailAddresses(iaik.asn1.structures.GeneralNames generalNames)
Picks all email addresses (GeneralNames of type rfc822Name) from the given GeneralNames.  | 
static java.lang.String[] | 
getMailAddresses(iaik.asn1.structures.GeneralNames[] generalNames)
Picks all email addresses (GeneralNames of type rfc822Name) from the array of given GeneralNames.  | 
static MLExpansionHistory | 
getMLExpansionHistory(SignedContent signedContent)
Returns the MLExpansionHistory attribute if included in the given SignedContent.  | 
static MLExpansionHistory | 
getMLExpansionHistory(SignerInfo[] signerInfos)
Returns the MLExpansionHistory attribute if included in the set of given SignerInfos.  | 
static ReceiptRequest | 
getReceiptRequest(SignedContent signedContent)
Returns the ReceiptRequest attribute if included in the given SignedContent.  | 
static ReceiptRequest | 
getReceiptRequest(SignerInfo[] signerInfos)
Returns the ReceiptRequest attribute if included in the set of given SignerInfos.  | 
static SignerInfo[] | 
getSignerInfosWithAttribute(SignedContent signedContent,
                            iaik.asn1.ObjectID attributeType,
                            boolean checkIfAllIdentical)
Returns all SignerInfos of the given SignedContent object that contain a signed attribute of the specified attribute type.  | 
static SignerInfo[] | 
getSignerInfosWithAttribute(SignedContent signedContent,
                            iaik.asn1.ObjectID attributeType,
                            boolean checkIfAllIdentical,
                            boolean checkIfIncluedInAllSignerInfos)
Returns all SignerInfos of the given SignedContent object that contain a signed attribute of the specified attribute type.  | 
static SignerInfo[] | 
getSignerInfosWithAttribute(SignerInfo[] signerInfos,
                            iaik.asn1.ObjectID attributeType,
                            boolean checkIfAllIdentical)
Returns all SignerInfos of the given array that contain a signed attribute of the specified attribute type.  | 
static SignerInfo[] | 
getSignerInfosWithAttribute(SignerInfo[] signerInfos,
                            iaik.asn1.ObjectID attributeType,
                            boolean checkIfAllIdentical,
                            boolean checkIfIncluedInAllSignerInfos)
Returns all SignerInfos of the given array that contain a signed attribute of the specified attribute type.  | 
static java.lang.String | 
parseAddress(java.lang.String address)
Parses an RFC822 address like: "John Doe" <jdoe@sic.tech> and returns the email address only.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static ReceiptRequest getReceiptRequest(SignedContent signedContent)
                                        throws iaik.asn1.CodingException,
                                               ESSException
signedContent - the signedContent whose signer infos to be searched for an ReceiptRequest attribute
iaik.asn1.CodingException - if an error occurs when decoding some included ReceiptRequest
                            attribute
ESSException - if ReceiptRequest attributes are included that are not identical
                         (according to 
                         RFC2634 all ReceiptRequest attributes that are found in the
                         SignerInfos must be identical)
public static ReceiptRequest getReceiptRequest(SignerInfo[] signerInfos)
                                        throws iaik.asn1.CodingException,
                                               ESSException
signerInfos - the signer infos to be searched for an ReceiptRequest attribute
iaik.asn1.CodingException - if an error occurs when decoding some included ReceiptRequest
                            attribute
ESSException - if ReceiptRequest attributes are included that are not identical
                         (according to 
                         RFC2634 all ReceiptRequest attributes that are found in the
                         SignerInfos must be identical)
public static MLExpansionHistory getMLExpansionHistory(SignedContent signedContent)
                                                throws iaik.asn1.CodingException,
                                                       ESSException
checkIfAllIdentical is set to false. However,
 if checkIfAllIdentical is set to true, any further SignerInfo is checked if having a 
 MLExpansionHistory that does not match to the first MLExpansionHistory found. If any MLExpansionHistory
 attributes are found that are not identical, an ESSException is thrown (according to  
  RFC2634 all SignerInfos created by a MLA must include
 the same MLExpansionHistory attribute).
signedContent - the signedContent whose signer infos to be searched for an MLExpansionHistory attribute
iaik.asn1.CodingException - if an error occurs when decoding some included MLExpansionHistory
                            attribute
ESSException - if checkIfAllIdentical is true and MLExpansionHistory attributes are included that are
                         not identical
public static MLExpansionHistory getMLExpansionHistory(SignerInfo[] signerInfos)
                                                throws iaik.asn1.CodingException,
                                                       ESSException
signerInfos - the signer infos to be searched for an MLExpansionHistory attribute
iaik.asn1.CodingException - if an error occurs when decoding some included MLExpansionHistory
                            attribute
ESSException - if MLExpansionHistory attributes are included that are not identical
                         (according to 
                         RFC2634 all SignerInfos created by a MLA must include the 
                         same MLExpansionHistory attribute)
public static ESSSecurityLabel getESSSecurityLabel(SignedContent signedContent)
                                            throws iaik.asn1.CodingException,
                                                   ESSException
signedContent - the signedContent whose signer infos to be searched for an ESSSecurityLabel
                      attribute
iaik.asn1.CodingException - if an error occurs when decoding some included ESSSecurityLabel
                            attribute
ESSException - if ESSSecurityLabel attributes are included that are not identical
                         (according the ESS specification (
                         RFC2634 all ESSSecurityLabel attributes included in a SignedData layer must
                         be identical); or if any, but not all of the SignerInfos do contain an 
                         ESSSecurityLabel attribute (according the ESS specification (
                          RFC2634 either all or none of 
                         the SignerInfos of a SignedData must contain an (identical) ESSSecurityLabel
                         attribute
public static ESSSecurityLabel getESSSecurityLabel(SignerInfo[] signerInfos)
                                            throws iaik.asn1.CodingException,
                                                   ESSException
signerInfos - the signer infos to be searched for an ESSSecurityLabel attribute
iaik.asn1.CodingException - if an error occurs when decoding some included ESSSecurityLabel
                            attribute
ESSException - if ESSSecurityLabel attributes are included that are not identical
                         (according the ESS specification (
                         RFC2634 all ESSSecurityLabel attributes included in a SignedData layer must
                         be identical); or if any, but not all of the SignerInfos do contain an 
                         ESSSecurityLabel attribute (according the ESS specification (
                          RFC2634 either all or none of 
                         the SignerInfos of a SignedData must contain an (identical) ESSSecurityLabel
                         attribute
public static EquivalentLabels getEquivalentLabels(SignedContent signedContent)
                                            throws iaik.asn1.CodingException,
                                                   ESSException
signedContent - the signedContent whose signer infos to be searched for an EquivalentLabels
                      attribute
iaik.asn1.CodingException - if an error occurs when decoding some included EquivalentLabels
                            attribute
ESSException - if EquivalentLabels attributes are included that are not identical
                         (according the ESS specification (
                         RFC2634 all EquivalentLabels attributes included in a SignedData layer must
                         be identical); or if any, but not all of the SignerInfos do contain an 
                         EquivalentLabels attribute (according the ESS specification (
                          RFC2634 either all or none of 
                         the SignerInfos of a SignedData must contain an (identical) EquivalentLabels
                         attribute
public static EquivalentLabels getEquivalentLabels(SignerInfo[] signerInfos)
                                            throws iaik.asn1.CodingException,
                                                   ESSException
signerInfos - the signer infos to be searched for an EquivalentLabels attribute
iaik.asn1.CodingException - if an error occurs when decoding some included EquivalentLabels
                            attribute
ESSException - if EquivalentLabels attributes are included that are not identical
                         (according the ESS specification (
                         RFC2634 all EquivalentLabels attributes included in a SignedData layer must
                         be identical); or if any, but not all of the SignerInfos do contain an 
                         EquivalentLabels attribute (according the ESS specification (
                          RFC2634 either all or none of 
                         the SignerInfos of a SignedData must contain an (identical) EquivalentLabels
                         attribute
public static iaik.asn1.structures.AttributeValue getAttributeValue(SignedContent signedContent,
                                                                    iaik.asn1.ObjectID attributeType,
                                                                    boolean checkIfAllIdentical)
                                                             throws iaik.asn1.CodingException,
                                                                    ESSException
checkIfAllIdentical is set to false. However, if checkIfAllIdentical is
 set to true, any further SignerInfo is checked if having an attribute of that type that does not match to the
 first attribute found. If any attributes of that type are found that are not identical, an ESSException is thrown.
signedContent - the signedContent whose signer infos to be searched for the requested attributecheckIfAllIdentical - whether to check if all attributes (of the requested type) that are included in the
              given signerInfos are identical (according to 
              RFC2634 for attributes of some type (e.g. ReceiptRequest)
              it is required that all attributes of that type that are inlcuded in the set of SignerInfos must be
              identical)
iaik.asn1.CodingException - if an error occurs when decoding some included attribute
ESSException - if checkIfAllIdentical is true and there are attributes of the requested type included that are
                         not identical
public static iaik.asn1.structures.AttributeValue getAttributeValue(SignedContent signedContent,
                                                                    iaik.asn1.ObjectID attributeType,
                                                                    boolean checkIfAllIdentical,
                                                                    boolean checkIfIncluedInAllSignerInfos)
                                                             throws iaik.asn1.CodingException,
                                                                    ESSException
checkIfAllIdentical is set to false. However, if checkIfAllIdentical is
 set to true, any further SignerInfo is checked if having an attribute of that type that does not match to the
 first attribute found. If any attributes of that type are found that are not identical, an ESSException is thrown.
signedContent - the signedContent whose signer infos to be searched for the requested attributecheckIfAllIdentical - whether to check if all attributes (of the requested type) that are included in the
              given signerInfos are identical (according to 
              RFC2634 for attributes of some type (e.g. ReceiptRequest)
              it is required that all attributes of that type that are inlcuded in the set of SignerInfos must be
              identical)checkIfIncluedInAllSignerInfos - whether to check if the attributes (of the requested type) is included in
              all SignerInfos (according to 
              RFC2634 for attributes of some type (e.g. ESSSecurityLabel)
              it is required that if the attribute is included in one SignerInfo of a SignedData layer it has
              to be present in all SignerInfos of this layer. Since this only is required together with the
              requirement that all attributes have to be identical, the inclusion check is only performed if
              checkIfAllIdentical is set to true)
iaik.asn1.CodingException - if an error occurs when decoding some included attribute
ESSException - if checkIfAllIdentical is true and there are attributes of the requested type included that are
                         not identical, or checkIfIncluedInAllSignerInfos is true
                         but the attribute is not included in all SignerInfos
public static iaik.asn1.structures.AttributeValue getAttributeValue(SignerInfo[] signerInfos,
                                                                    iaik.asn1.ObjectID attributeType,
                                                                    boolean checkIfAllIdentical)
                                                             throws iaik.asn1.CodingException,
                                                                    ESSException
checkIfAllIdentical is set to false. However, if checkIfAllIdentical is
 set to true, any further SignerInfo is checked if having an attribute of that type that does not match to the
 first attribute found. If any attributes of that type are found that are not identical, an ESSException is thrown.
signerInfos - the signer infos to be searched for the requested attributecheckIfAllIdentical - whether to check if all attributes (of the requested type) that are included in the
              given signerInfos are identical (according to 
              RFC2634 for attributes of some type (e.g. ReceiptRequest)
              it is required that all attributes of that type that are inlcuded in the set of SignerInfos must be
              identical)
iaik.asn1.CodingException - if an error occurs when decoding some included attribute
ESSException - if checkIfAllIdentical is true and there are attributes of the requested type included that are
                         not identical, or checkIfIncluedInAllSignerInfos is true
                         but the attribute is not included in all SignerInfos
public static iaik.asn1.structures.AttributeValue getAttributeValue(SignerInfo[] signerInfos,
                                                                    iaik.asn1.ObjectID attributeType,
                                                                    boolean checkIfAllIdentical,
                                                                    boolean checkIfIncluedInAllSignerInfos)
                                                             throws iaik.asn1.CodingException,
                                                                    ESSException
checkIfAllIdentical is set to false. However, if checkIfAllIdentical is
 set to true, any further SignerInfo is checked if having an attribute of that type that does not match to the
 first attribute found. If any attributes of that type are found that are not identical, an ESSException is thrown.
signerInfos - the signer infos to be searched for the requested attributecheckIfAllIdentical - whether to check if all attributes (of the requested type) that are included in the
              given signerInfos are identical (according to 
              RFC2634 for attributes of some type (e.g. ReceiptRequest)
              it is required that all attributes of that type that are inlcuded in the set of SignerInfos must be
              identical)checkIfIncluedInAllSignerInfos - whether to check if the attributes (of the requested type) are included in
              all SignerInfos (according to 
              RFC2634 for attributes of some type (e.g. ESSSecurityLabel)
              it is required that if the attribute is included in one SignerInfo of a SignedData layer it has
              to be present in all SignerInfos of this layer. Since this only is required together with the
              requirement that all attributes have to be identical, the inclusion check is only performed if
              checkIfAllIdentical is set to true)
iaik.asn1.CodingException - if an error occurs when decoding some included attribute
ESSException - if checkIfAllIdentical is true and there are attributes of the requested type included that are
                         not identical, or checkIfIncluedInAllSignerInfos is true
                         but the attribute is not included in all SignerInfos
public static SignerInfo[] getSignerInfosWithAttribute(SignedContent signedContent,
                                                       iaik.asn1.ObjectID attributeType,
                                                       boolean checkIfAllIdentical,
                                                       boolean checkIfIncluedInAllSignerInfos)
                                                throws iaik.asn1.CodingException,
                                                       ESSException
checkIfAllIdentical is set to false, any signerInfo holding a signed attribute 
 of requested type is picked. However, if checkIfAllIdentical is set to true, all attributes
 (of the requested type) ever included in the given SignerInfo have to be indentical. If any attributes of
 that type are found that are not identical, an ESSException is thrown.
signedContent - the signedContent whose signer infos to be searched for the requested attributecheckIfAllIdentical - whether to check if all attributes (of the requested type) that are included in the
              given signerInfos are identical (according to 
              RFC2634 for attributes of some type (e.g. ReceiptRequest)
              it is required that all attributes of that type that are inlcuded in the set of SignerInfos must be
              identical)checkIfIncluedInAllSignerInfos - whether to check if the attributes (of the requested type) is included in
              all SignerInfos (according to 
              RFC2634 for attributes of some type (e.g. ESSSecurityLabel)
              it is required that if the attribute is included in one SignerInfo of a SignedData layer it has
              to be present in all SignerInfos of this layer. Since this only is required together with the
              requirement that all attributes have to be identical, the inclusion check is only performed if
              checkIfAllIdentical is set to true)
checkIfAllIdentical is false the attributes (of requested type) in the SignerInfo result
            set may not be identical; if checkIfAllIdentical is true all attributes (of requested type) 
            in the SignerInfo result set are identical (otherwise an ESSException would be thrown);
iaik.asn1.CodingException - if an error occurs when decoding some included attribute
ESSException - if checkIfAllIdentical is true and there are attributes of the requested type 
                         included that are not identical, or checkIfIncluedInAllSignerInfos is true
                         but the attribute is not included in all SignerInfos
public static SignerInfo[] getSignerInfosWithAttribute(SignedContent signedContent,
                                                       iaik.asn1.ObjectID attributeType,
                                                       boolean checkIfAllIdentical)
                                                throws iaik.asn1.CodingException,
                                                       ESSException
checkIfAllIdentical is set to false, any signerInfo holding a signed attribute 
 of requested type is picked. However, if checkIfAllIdentical is set to true, all attributes
 (of the requested type) ever included in the given SignerInfo have to be indentical. If any attributes of
 that type are found that are not identical, an ESSException is thrown.
signedContent - the signedContent whose signer infos to be searched for the requested attributecheckIfAllIdentical - whether to check if all attributes (of the requested type) that are included in the
              given signerInfos are identical (according to 
              RFC2634 for attributes of some type (e.g. ReceiptRequest)
              it is required that all attributes of that type that are inlcuded in the set of SignerInfos must be
              identical)
checkIfAllIdentical is false the attributes (of requested type) in the SignerInfo result
            set may not be identical; if checkIfAllIdentical is true all attributes (of requested type) 
            in the SignerInfo result set are identical (otherwise an ESSException would be thrown);
iaik.asn1.CodingException - if an error occurs when decoding some included attribute
ESSException - if checkIfAllIdentical is true and there are attributes of the requested type 
                         included that are not identical
public static SignerInfo[] getSignerInfosWithAttribute(SignerInfo[] signerInfos,
                                                       iaik.asn1.ObjectID attributeType,
                                                       boolean checkIfAllIdentical)
                                                throws iaik.asn1.CodingException,
                                                       ESSException
checkIfAllIdentical is set to false, any signerInfo holding a signed attribute 
 of requested type is picked. However, if checkIfAllIdentical is set to true, all attributes
 (of the requested type) ever included in the given SignerInfo have to be indentical. If any attributes of
 that type are found that are not identical, an ESSException is thrown.
signerInfos - the signer infos to be searched for the requested attributecheckIfAllIdentical - whether to check if all attributes (of the requested type) that are included in the
              given signerInfos are identical (according to 
              RFC2634 for attributes of some type (e.g. ReceiptRequest)
              it is required that all attributes of that type that are inlcuded in the set of SignerInfos must be
              identical)
checkIfAllIdentical is false the attributes (of requested type) in the SignerInfo result
            set may not be identical; if checkIfAllIdentical is true all attributes (of requested type) 
            in the SignerInfo result set are identical (otherwise an ESSException would be thrown);
iaik.asn1.CodingException - if an error occurs when decoding some included attribute
ESSException - if checkIfAllIdentical is true and there are attributes of the requested type 
                         included that are not identical
public static SignerInfo[] getSignerInfosWithAttribute(SignerInfo[] signerInfos,
                                                       iaik.asn1.ObjectID attributeType,
                                                       boolean checkIfAllIdentical,
                                                       boolean checkIfIncluedInAllSignerInfos)
                                                throws iaik.asn1.CodingException,
                                                       ESSException
checkIfAllIdentical is set to false, any signerInfo holding a signed attribute 
 of requested type is picked. However, if checkIfAllIdentical is set to true, all attributes
 (of the requested type) ever included in the given SignerInfo have to be indentical. If any attributes of
 that type are found that are not identical, an ESSException is thrown.
signerInfos - the signer infos to be searched for the requested attributecheckIfAllIdentical - whether to check if all attributes (of the requested type) that are included in the
              given signerInfos are identical (according to 
              RFC2634 for attributes of some type (e.g. ReceiptRequest)
              it is required that all attributes of that type that are inlcuded in the set of SignerInfos must be
              identical)checkIfIncluedInAllSignerInfos - whether to check if the attributes (of the requested type) is included in
              all SignerInfos (according to 
              RFC2634 for attributes of some type (e.g. ESSSecurityLabel)
              it is required that if the attribute is included in one SignerInfo of a SignedData layer it has
              to be present in all SignerInfos of this layer. Since this only is required together with the
              requirement that all attributes have to be identical, the inclusion check is only performed if
              checkIfAllIdentical is set to true)
checkIfAllIdentical is false the attributes (of requested type) in the SignerInfo result
            set may not be identical; if checkIfAllIdentical is true all attributes (of requested type) 
            in the SignerInfo result set are identical (otherwise an ESSException would be thrown);
iaik.asn1.CodingException - if an error occurs when decoding some included attribute
ESSException - if checkIfAllIdentical is true and there are attributes of the requested type 
                         included that are not identical, or checkIfIncluedInAllSignerInfos is true
                         but the attribute is not included in all SignerInfos
public static SignerInfo getFirstSignerInfoWithAttribute(SignedContent signedContent,
                                                         iaik.asn1.ObjectID attributeType)
                                                  throws iaik.asn1.CodingException
signedContent - the signedContent whose signer infos to be searched for the requested attribute
iaik.asn1.CodingException - if an error occurs when decoding some included attribute
public static SignerInfo getFirstSignerInfoWithAttribute(SignerInfo[] signerInfos,
                                                         iaik.asn1.ObjectID attributeType)
                                                  throws iaik.asn1.CodingException
signerInfos - the signer infos to be searched for the requested attribute
iaik.asn1.CodingException - if an error occurs when decoding some included attributepublic static java.lang.String[] getMailAddresses(iaik.asn1.structures.GeneralNames[] generalNames)
public static java.lang.String[] getMailAddresses(iaik.asn1.structures.GeneralNames generalNames)
public static java.lang.String parseAddress(java.lang.String address)
address - the email address string to be parsed
public static boolean compareGeneralName(iaik.asn1.structures.GeneralName gn1,
                                         iaik.asn1.structures.GeneralName gn2)
This method uses the following criteria for comparing the two GeneralName object:
false 
 parsing the RFC822 part; e.g. only "jdoe@sic.tech" of an
         address like "John Doe <jdoe@iaik.tugraz.at>" is compared
     
gn1 - the first GeneralNamegn2 - the second GeneralName
true, if the two GeneralNames are equal, false otherwise
public static boolean compareGeneralNames(iaik.asn1.structures.GeneralNames gns1,
                                          iaik.asn1.structures.GeneralNames gns2)
 This method steps through all GeneralName objects included and compares them for equality.
gns1 - the first GeneralNamesgns2 - the second GeneralNames
true, if the two GeneralNames are equal, false otherwisepublic static iaik.asn1.structures.GeneralName createGeneralName(java.lang.String email)
email - the email address from which to create a GeneralName
public static iaik.asn1.structures.GeneralNames createGeneralNames(java.lang.String email)
email - the email address from which to create a GeneralNames
public static java.security.cert.X509Certificate[] convertCertificateChain(java.security.cert.Certificate[] certificateChain,
                                                                           java.lang.String provider)
                                                                    throws java.security.cert.CertificateException,
                                                                           java.security.NoSuchProviderException
certificateChain - the array of certificates to convertprovider - the name of the provider whose certificate implementation is requested
java.security.cert.CertificateException - if there occurs an error while parsing/converting the certificate chain
java.security.NoSuchProviderException - if the requested provider is not installed or does not support a X.509
                                    certificate factory as required for conversion
public static java.security.cert.X509Certificate convertCertificate(java.security.cert.Certificate certificate,
                                                                    java.lang.String provider)
                                                             throws java.security.cert.CertificateException,
                                                                    java.security.NoSuchProviderException
certificate - the certificate to convertprovider - the name of the provider whose certificate implementation is requested
java.security.cert.CertificateException - if there occurs an error while parsing/converting the certificate
java.security.NoSuchProviderException - if the requested provider is not installed or does not support a X.509
                                    certificate factory as required for conversion
public static java.security.Key convertKey(java.security.Key key,
                                           java.lang.String provider)
                                    throws java.security.InvalidKeyException,
                                           java.security.NoSuchProviderException,
                                           java.security.NoSuchAlgorithmException
key - the key to convertprovider - the name of the provider whose key implementation is requested
java.security.InvalidKeyException - if the key cannot be converted
java.security.NoSuchProviderException - if the requested provider is not installed
java.security.NoSuchAlgorithmException - if the requested provider does not support a keyfactory
                                     of requested type
public static iaik.x509.X509Certificate convertCertificate(java.security.cert.Certificate certificate)
                                                    throws java.security.cert.CertificateException
certificate - the certificate to convert
java.security.cert.CertificateException - if there occurs an error while parsing/converting the certificate
public static iaik.x509.X509Certificate[] convertCertificateChain(java.security.cert.Certificate[] certificateChain)
                                                           throws java.security.cert.CertificateException
certificateChain - the certificate chain to convert
java.security.cert.CertificateException - if there occurs an error while parsing/converting the certificate chain
  | 
					
  		
		 	IAIK CMS/SMIME Toolkit API Documentation
			 Version 6.1  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
					 
				 | 
				
					v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC  | 
				
					 
				 |