public class VistaMessage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private byte |
archType |
private byte[] |
body |
private int |
cmsEnvpSize |
private Pkcs7Data |
cmsSigned |
private int |
cmsSignSize |
private int |
dCount |
private short |
dHeadSize |
private CMSVistaEnvelopedData |
envelopedData |
private int |
fCount |
private short |
fHeadSize |
private static byte[] |
hbz2 |
private int |
headCRC |
private short |
headSize |
private byte |
hostOS |
private int |
hSize |
private byte[] |
magic |
private byte[] |
memo |
private int |
memoCRC |
private int |
memoSize |
private byte |
priority |
private byte |
reservB |
private short |
reservW |
private int |
time |
private java.util.ArrayList<VistaFile> |
vistaFiles |
Constructor and Description |
---|
VistaMessage(byte[] body) |
VistaMessage(java.lang.String title,
byte priority,
java.util.List<java.security.cert.X509Certificate> recipientsCertsList,
java.security.PrivateKey privateKey) |
Modifier and Type | Method and Description |
---|---|
void |
addVistaFile(java.lang.String fileName,
byte[] blob) |
byte[] |
compressData(byte[] data)
Сжатие данных с использованием bzip2
|
byte[] |
generateVistaMessage(java.security.PrivateKey signerKey,
java.security.cert.X509Certificate signSenderCert,
java.security.cert.X509Certificate exchSenderCert) |
byte |
getArchType() |
byte[] |
getDecryptedFile(java.security.KeyStore store,
java.lang.String pass,
java.security.cert.X509Certificate exchSenderCert,
int indx) |
CMSVistaEnvelopedData |
getEnvelopedData() |
byte[] |
getFile(int indx) |
java.lang.String |
getReference() |
SignerInformation |
getSignerInfo() |
X509Name |
getSignSenderName() |
java.lang.String |
getTitleMessage() |
int |
getVistaFileCount() |
java.lang.String |
getVistaFileName(int indx) |
boolean |
isMessageType(byte type) |
private byte[] |
unpackData(byte[] data)
Распаковка данных с использованием bzip2
|
boolean |
verifySign(java.security.cert.X509Certificate cert) |
private byte[] magic
private int headCRC
private short headSize
private short dHeadSize
private short fHeadSize
private byte hostOS
private byte archType
private int dCount
private int fCount
private int time
private int memoSize
private int memoCRC
private int cmsEnvpSize
private int cmsSignSize
private byte priority
private byte reservB
private short reservW
private byte[] body
private byte[] memo
private int hSize
private static byte[] hbz2
private java.util.ArrayList<VistaFile> vistaFiles
private CMSVistaEnvelopedData envelopedData
private Pkcs7Data cmsSigned
public VistaMessage(byte[] body) throws java.io.IOException, CMSException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
body
- Сообщение в формате Vistajava.io.IOException
CMSException
java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
public VistaMessage(java.lang.String title, byte priority, java.util.List<java.security.cert.X509Certificate> recipientsCertsList, java.security.PrivateKey privateKey)
public void addVistaFile(java.lang.String fileName, byte[] blob)
public boolean verifySign(java.security.cert.X509Certificate cert)
public SignerInformation getSignerInfo()
public X509Name getSignSenderName()
public int getVistaFileCount()
public java.lang.String getVistaFileName(int indx)
public java.lang.String getTitleMessage() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
private byte[] unpackData(byte[] data)
data
- Сжатые данныеpublic byte[] compressData(byte[] data)
data
- Данные для сжатияpublic byte[] getFile(int indx)
public byte[] getDecryptedFile(java.security.KeyStore store, java.lang.String pass, java.security.cert.X509Certificate exchSenderCert, int indx)
public boolean isMessageType(byte type)
public byte[] generateVistaMessage(java.security.PrivateKey signerKey, java.security.cert.X509Certificate signSenderCert, java.security.cert.X509Certificate exchSenderCert)
public CMSVistaEnvelopedData getEnvelopedData()
public java.lang.String getReference()
public byte getArchType()
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.