|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.smime.ess.utils.ESSLayer iaik.smime.ess.utils.SignedESSLayer
public class SignedESSLayer
An ESS layer holding a signed S/MIME entity.
Field Summary |
---|
Fields inherited from class iaik.smime.ess.utils.ESSLayer |
---|
content_, dataHandler_, ENVELOPED_DATA, SIGNED_DATA, type_ |
Constructor Summary | |
---|---|
SignedESSLayer(SignedContent content)
Creates an ESSLayer for the given signed content. |
Method Summary | |
---|---|
boolean |
allSignaturesValid()
Checks if the signatures of all included SignerInfos are valid. |
EquivalentLabels |
getEquivalentLabels()
Gets the EquivalentLabels attribute, if present in this signed ESS layer. |
ESSSecurityLabel |
getESSSecurityLabel()
Gets the ESSSecurityLabel attribute, if present in this signed ESS layer. |
MLExpansionHistory |
getMLExpansionHistory()
Gets the MLExpansionHistory attribute, if present in this (outer) signed ESS layer. |
ReceiptRequest |
getReceiptRequest()
Gets the ReceiptRequest attribute, if present in this (inner) signed ESS layer. |
SignerInfo[] |
getSignerInfosWithMLExpansionHistory()
Gets all SignerInfos of this signed layer that contain a MLExpansionHistory attribute. |
SignerInfo[] |
getSignerInfosWithReceiptRequest()
Gets all SignerInfos of this signed layer that contain a ReceiptRequest attribute. |
SignerInfoVerificationResult[] |
getSignerInfoVerificationResults()
Gets the signature verification results for all included SignerInfos. |
SignerInfoVerificationResult |
getSignerInfoVerificationResults(CertificateIdentifier signerID)
Gets the signature verification result for the SignerInfo with the given signer id. |
boolean |
isOuterLayer()
Asks whether this signed layer is the outer layer. |
void |
setIsOuterLayer(boolean isOuterLayer)
Sets if this signed layer is the outer layer. |
Methods inherited from class iaik.smime.ess.utils.ESSLayer |
---|
getContent, getDataHandler, getException, getType, setDataHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SignedESSLayer(SignedContent content)
signed
content.
content
- the SignedContent for this ESSLayerMethod Detail |
---|
public ESSSecurityLabel getESSSecurityLabel() throws CodingException, ESSException
CodingException
- if an error occurs when decoding some included ESSSecurityLabel
attribute
ESSException
- if this layer contains ESSSecurityLabel attributes 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 attributepublic EquivalentLabels getEquivalentLabels() throws CodingException, ESSException
CodingException
- if an error occurs when decoding some included EquivalentLabels
attribute
ESSException
- if this layer contains EquivalentLabels attributes 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 attributepublic SignerInfoVerificationResult[] getSignerInfoVerificationResults()
public SignerInfoVerificationResult getSignerInfoVerificationResults(CertificateIdentifier signerID)
signerID
- the id of the SignerInfo for which verification information is requested
null
if there is no verification result for this signer includedpublic boolean allSignaturesValid()
true
if all signatures have been successfully verified and are valid;
false
if there is any verified but invalid signature or if there is
any siganture that cannot be verified for some reason (e.g. if the signer certificate
is missing)public boolean isOuterLayer()
true
if this layer is the outer layer,
false
if notpublic void setIsOuterLayer(boolean isOuterLayer)
isOuterLayer
- indicates if this signed layer is the
outer layerpublic MLExpansionHistory getMLExpansionHistory()
public SignerInfo[] getSignerInfosWithMLExpansionHistory()
public ReceiptRequest getReceiptRequest()
public SignerInfo[] getSignerInfosWithReceiptRequest()
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |