|
JSS 3.1.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mozilla.jss.crypto.SignatureSpi | +--org.mozilla.jss.pkcs11.PK11Signature
Field Summary | |
protected Algorithm |
algorithm
|
protected PK11Key |
key
|
protected boolean |
raw
|
protected java.io.ByteArrayOutputStream |
rawInput
|
protected SigContextProxy |
sigContext
|
static int |
SIGN
|
protected int |
state
|
protected PK11Token |
token
|
protected TokenProxy |
tokenProxy
|
static int |
UNINITIALIZED
|
static int |
VERIFY
|
Constructor Summary | |
PK11Signature(PK11Token token,
SignatureAlgorithm algorithm)
PK11Signature |
Method Summary | |
void |
engineInitSign(PrivateKey privateKey)
engineInitSign |
void |
engineInitSign(PrivateKey privateKey,
java.security.SecureRandom random)
engineInitSign This just here for JCA compliance(?), we don't take randoms this way. |
void |
engineInitVerify(java.security.PublicKey publicKey)
engineInitVerify |
private static byte[] |
engineRawSignNative(PK11Token token,
PrivateKey key,
byte[] hash)
Performs raw signing of the given hash with the given private key. |
protected static boolean |
engineRawVerifyNative(PK11Token token,
java.security.PublicKey key,
byte[] hash,
byte[] signature)
Performs raw verification of the signature of a hash using the given public key, on the given token. |
void |
engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
engineSetParameter |
byte[] |
engineSign()
engineSign |
int |
engineSign(byte[] outbuf,
int offset,
int len)
engineSign |
private byte[] |
engineSignNative()
engineSignNative |
void |
engineUpdate(byte b)
engineUpdate |
void |
engineUpdate(byte[] b,
int off,
int len)
engineUpdate |
protected void |
engineUpdateNative(byte[] b,
int off,
int len)
engineUpdateNative |
boolean |
engineVerify(byte[] sigBytes)
engineVerify |
protected boolean |
engineVerifyNative(byte[] sigBytes)
engineVerifyNative |
protected void |
initSigContext()
initSigContext This function creates a signing context, initializes it, and sets the sigContext field. |
protected void |
initVfyContext()
initVfyContext |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected PK11Token token
protected TokenProxy tokenProxy
protected Algorithm algorithm
protected PK11Key key
protected int state
protected SigContextProxy sigContext
protected boolean raw
protected java.io.ByteArrayOutputStream rawInput
public static final int UNINITIALIZED
public static final int SIGN
public static final int VERIFY
Constructor Detail |
public PK11Signature(PK11Token token, SignatureAlgorithm algorithm) throws java.security.NoSuchAlgorithmException, TokenException
Method Detail |
public void engineInitSign(PrivateKey privateKey) throws java.security.InvalidKeyException, TokenException
engineInitSign
in class SignatureSpi
public void engineInitSign(PrivateKey privateKey, java.security.SecureRandom random) throws java.security.InvalidKeyException, TokenException
engineInitSign
in class SignatureSpi
protected void initSigContext() throws TokenException
public void engineInitVerify(java.security.PublicKey publicKey) throws java.security.InvalidKeyException, TokenException
engineInitVerify
in class SignatureSpi
protected void initVfyContext() throws TokenException
public void engineUpdate(byte b) throws java.security.SignatureException, TokenException
engineUpdate
in class SignatureSpi
public void engineUpdate(byte[] b, int off, int len) throws java.security.SignatureException, TokenException
engineUpdate
in class SignatureSpi
protected void engineUpdateNative(byte[] b, int off, int len) throws TokenException
public byte[] engineSign() throws java.security.SignatureException, TokenException
engineSign
in class SignatureSpi
public int engineSign(byte[] outbuf, int offset, int len) throws java.security.SignatureException, TokenException
engineSign
in class SignatureSpi
private static byte[] engineRawSignNative(PK11Token token, PrivateKey key, byte[] hash) throws java.security.SignatureException, TokenException
private byte[] engineSignNative() throws java.security.SignatureException, TokenException
public boolean engineVerify(byte[] sigBytes) throws java.security.SignatureException, TokenException
engineVerify
in class SignatureSpi
protected static boolean engineRawVerifyNative(PK11Token token, java.security.PublicKey key, byte[] hash, byte[] signature) throws java.security.SignatureException, TokenException
protected boolean engineVerifyNative(byte[] sigBytes) throws java.security.SignatureException, TokenException
public void engineSetParameter(java.security.spec.AlgorithmParameterSpec params) throws java.security.InvalidAlgorithmParameterException, TokenException
engineSetParameter
in class SignatureSpi
|
JSS 3.1.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |