|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--de.bb.security.Pkcs6
This class contains functions from Pkcs 6
| Field Summary | |
static byte[] |
rsaEncryption
|
| Constructor Summary | |
Pkcs6()
|
|
| Method Summary | |
static byte[] |
createCertificate(byte[] issuer,
byte[] date,
byte[] owner,
byte[] pubN,
byte[] pubE)
Create a certifcate without siganture. |
static byte[] |
createCertificateRequest(byte[] owner,
byte[] pubN,
byte[] pubE)
Create a certifcate request without siganture. |
static byte[] |
createDate(byte[] from,
byte[] to)
Create a sequence containing a time intervall. |
static byte[] |
doRSA(byte[] z,
byte[] n,
byte[] e)
perform an RSA encrption |
static byte[] |
getReqExponent(byte[] req)
Get the public exponent from a X.509 certificate request |
static byte[] |
getReqModulo(byte[] req)
Get the public modulo from a X.509 certificate request |
static byte[] |
getX509Exponent(byte[] cert)
Get the public exponent from a X.509 certificate |
static byte[] |
getX509Modulo(byte[] cert)
Get the public modulo from a X.509 certificate |
static byte[] |
makeInfo(java.lang.String fn)
Create a owner / issuer info sequence from a file. |
static byte[] |
makeInfo(java.lang.String name,
java.lang.String orgName,
java.lang.String url,
java.lang.String country,
java.lang.String state,
java.lang.String location)
Create a owner / issuer info sequence from givenparameters. |
static java.lang.String |
searchOwner(byte[] owner)
Search owners name in an owner / issuer info sequence |
static byte[] |
sign(byte[] sign,
byte[] privN,
byte[] privF,
byte[] privE)
Sign a given sequence with a RSA private key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte[] rsaEncryption
| Constructor Detail |
public Pkcs6()
| Method Detail |
public static byte[] createCertificate(byte[] issuer,
byte[] date,
byte[] owner,
byte[] pubN,
byte[] pubE)
issuer - The issuer of the certificate.date - An time intervall when the certificate is valid.owner - The owner ot the certificate.pubN - owners modulo.pubE - owners public exponent.
public static byte[] createCertificateRequest(byte[] owner,
byte[] pubN,
byte[] pubE)
owner - The owner ot the certificate.pubN - owners modulo.pubE - owners public exponent.
public static byte[] sign(byte[] sign,
byte[] privN,
byte[] privF,
byte[] privE)
sign - The data which is signed.privN - The public modulo.privF - The private exponent.
public static byte[] createDate(byte[] from,
byte[] to)
from - Begin of the tim intervall.to - End of the time intervall.
public static byte[] makeInfo(java.lang.String fn)
throws java.io.IOException
fn - The file name from which the input data is read.
public static byte[] makeInfo(java.lang.String name,
java.lang.String orgName,
java.lang.String url,
java.lang.String country,
java.lang.String state,
java.lang.String location)
fn - The file name from which the input data is read.public static byte[] getX509Modulo(byte[] cert)
cert - - a X.509 certificatepublic static byte[] getX509Exponent(byte[] cert)
cert - - a X.509 certificatepublic static byte[] getReqModulo(byte[] req)
cert - - a X.509 certificate requestpublic static byte[] getReqExponent(byte[] req)
cert - - a X.509 certificate requestpublic static java.lang.String searchOwner(byte[] owner)
owner - the input data, which is searched
public static byte[] doRSA(byte[] z,
byte[] n,
byte[] e)
z - the data to encrypt/decryptn - the moduloe - the exponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||