|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.cryptography.SignedEntity
public class SignedEntity
A specific type of MultipartEntity that has been signed.
| Constructor Summary | |
|---|---|
SignedEntity(javax.mail.internet.ContentType mmContentType,
javax.mail.internet.MimeMultipart mm)
Constructs a signed entity from a JavaMail MimeMultipart. |
|
SignedEntity(DigestAlgorithm algorithm,
javax.mail.internet.MimeMultipart mm)
Constructs a signed entity from a JavaMail MimeMultipart. |
|
| Method Summary | |
|---|---|
MimeEntity |
getContent()
Gets The content entity that was signed. |
byte[] |
getEntityBodyAsBytes()
Gets the content (body) of the signed entity as a byte array. |
javax.mail.internet.MimeMultipart |
getMimeMultipart()
Gets the original MimeMultipart object of the signed entity. |
MimeEntity |
getSignature()
Gets the entity part that contains the message signature. |
static SignedEntity |
load(javax.mail.internet.MimeMultipart source)
Generates a signed entity from a MimeMultipart entity. |
void |
setContent(MimeEntity value)
Sets the content entity that will be used to generate the signature. |
void |
setSignature(MimeEntity value)
Sets the entity part that contains the message signature. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SignedEntity(javax.mail.internet.ContentType mmContentType,
javax.mail.internet.MimeMultipart mm)
throws MimeException
mmContentType - The content type of the entity.mm - The MimeMultipart that contains the parts that were used to sign the message and the message signature part.
MimeException
public SignedEntity(DigestAlgorithm algorithm,
javax.mail.internet.MimeMultipart mm)
algorithm - The digest algorithm used to create message signature.mm - The MimeMultipart that contains the parts that were used to sign the message and the message signature part.| Method Detail |
|---|
public MimeEntity getContent()
public void setContent(MimeEntity value)
value - The content entity that will be used to generate the signature.public MimeEntity getSignature()
public void setSignature(MimeEntity value)
value - The entity part that contains the message signature.public javax.mail.internet.MimeMultipart getMimeMultipart()
public byte[] getEntityBodyAsBytes()
public static SignedEntity load(javax.mail.internet.MimeMultipart source)
source - The MimeMultipart that will be parsed into a signed entity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||