|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception iaik.cms.CMSException iaik.smime.SMimeException iaik.smime.ess.ESSException iaik.smime.ess.utils.SignedReceiptException
public class SignedReceiptException
This exception is thrown when the creation of a SignedReceipt
fails for some reason. Calling method getReason
may
be used to get the reason code for the failure.
Field Summary | |
---|---|
static int |
ATTRIBUTE_PARSING_ERROR
SignedReceipt creation abort reason "Attribute parsing error". |
static int |
ML_RECEIPT_POLICY_VALUE_NONE
SignedReceipt creation abort reason "MlReceiptPolicy value none". |
static int |
NO_RECEIPT_REQUEST
SignedReceipt creation abort reason "No receipt request". |
static int |
NOT_A_FIRST_TIER_RECIPIENT
SignedReceipt creation abort reason "Not a firstTier recipient". |
static int |
NOT_IN_RECEIPTS_FROM_LIST
SignedReceipt creation abort reason "Not in receiptsFrom list". |
protected int |
reason_
The reason why no SignedReceipt has been created. |
static int |
RECEIPT_REQUEST_ATTRIBUTES_MISMATCH
SignedReceipt creation abort reason "ReceiptRequest attributes mismatch". |
Constructor Summary | |
---|---|
SignedReceiptException()
Creates a new SignedReceiptException. |
|
SignedReceiptException(int reason)
Creates an SignedReceiptException for the specified reason. |
|
SignedReceiptException(int reason,
java.lang.String message)
Creates an SignedReceiptException for the specified reason and error message. |
|
SignedReceiptException(java.lang.String msg)
Creates an SignedReceiptException with a specified message. |
Method Summary | |
---|---|
int |
getReason()
Returns the reason why no SignedReceipt has been created. |
static java.lang.String |
getReasonMsg(int reason)
Returns a message describing the given reason code. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NO_RECEIPT_REQUEST
ReceiptRequest
attribute.
public static final int NOT_IN_RECEIPTS_FROM_LIST
ReceiptRequest
attribute is present, but the recipients address is not
included in the receiptsFrom field.
public static final int ML_RECEIPT_POLICY_VALUE_NONE
MLExpansionHistory
attribute is present in the outermost SignedData layer and that its last
MLData
element has a MLReceiptPolicy
value of "none": the the mail list receipt policy supersedes
the receipt request of the sender and no signed receipt has to be sent.
public static final int NOT_A_FIRST_TIER_RECIPIENT
MLExpansionHistory
attribute.
public static final int RECEIPT_REQUEST_ATTRIBUTES_MISMATCH
ReceiptRequest
attributes included in the SignedData layer that are not identical as
required by RFC2634.
public static final int ATTRIBUTE_PARSING_ERROR
ReceiptRequest
attribute included in the inner SignedData layer or a
MLExpansionHistory
attribute
included in the outer layer.
protected int reason_
Constructor Detail |
---|
public SignedReceiptException()
public SignedReceiptException(java.lang.String msg)
msg
- the message.public SignedReceiptException(int reason)
"No receipt request"
(integer 0)
"Not in receiptsFrom list"
(integer 1)
"MlReceiptPolicy value none"
(integer 2)
"Not a firstTier recipient"
(integer 3)
"ReceiptRequest attributes mismatch"
(integer 4)
"Attribute parsing error"
(integer 4)
reason
- the reason why no SignedReceipt has been createdpublic SignedReceiptException(int reason, java.lang.String message)
"No receipt request"
(integer 0)
"Not in receiptsFrom list"
(integer 1)
"MlReceiptPolicy value none"
(integer 2)
"Not a firstTier recipient"
(integer 3)
"ReceiptRequest attributes mismatch"
(integer 4)
"Attribute parsing error"
(integer 4)
reason
- the reason why no SignedReceipt has been createdmessage
- the error messageMethod Detail |
---|
public int getReason()
"No receipt request"
(integer 0)
"Not in receiptsFrom list"
(integer 1)
"MlReceiptPolicy value none"
(integer 2)
"Not a firstTier recipient"
(integer 3)
"ReceiptRequest attributes mismatch"
(integer 4)
"Attribute parsing error"
(integer 4)
public static java.lang.String getReasonMsg(int reason)
reason
- the reason code
|
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 |