Methods Summary |
---|
protected java.lang.String | engineGetJCEAlgorithmString()
return this._signatureAlgorithm.getAlgorithm();
|
protected java.lang.String | engineGetJCEProviderName()
return this._signatureAlgorithm.getProvider().getName();
|
public abstract java.lang.String | engineGetURI()
|
protected void | engineInitSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
throw new XMLSignatureException(
"algorithms.CannotUseAlgorithmParameterSpecOnRSA");
|
protected void | engineInitSign(java.security.Key privateKey, java.security.SecureRandom secureRandom)
if (!(privateKey instanceof PrivateKey)) {
String supplied = privateKey.getClass().getName();
String needed = PrivateKey.class.getName();
Object exArgs[] = { supplied, needed };
throw new XMLSignatureException("algorithms.WrongKeyForThisOperation",
exArgs);
}
try {
this._signatureAlgorithm.initSign((PrivateKey) privateKey,
secureRandom);
} catch (InvalidKeyException ex) {
throw new XMLSignatureException("empty", ex);
}
|
protected void | engineInitSign(java.security.Key privateKey)
if (!(privateKey instanceof PrivateKey)) {
String supplied = privateKey.getClass().getName();
String needed = PrivateKey.class.getName();
Object exArgs[] = { supplied, needed };
throw new XMLSignatureException("algorithms.WrongKeyForThisOperation",
exArgs);
}
try {
this._signatureAlgorithm.initSign((PrivateKey) privateKey);
} catch (InvalidKeyException ex) {
throw new XMLSignatureException("empty", ex);
}
|
protected void | engineInitVerify(java.security.Key publicKey)
if (!(publicKey instanceof PublicKey)) {
String supplied = publicKey.getClass().getName();
String needed = PublicKey.class.getName();
Object exArgs[] = { supplied, needed };
throw new XMLSignatureException("algorithms.WrongKeyForThisOperation",
exArgs);
}
try {
this._signatureAlgorithm.initVerify((PublicKey) publicKey);
} catch (InvalidKeyException ex) {
throw new XMLSignatureException("empty", ex);
}
|
protected void | engineSetHMACOutputLength(int HMACOutputLength)
throw new XMLSignatureException("algorithms.HMACOutputLengthOnlyForHMAC");
|
protected void | engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
try {
this._signatureAlgorithm.setParameter(params);
} catch (InvalidAlgorithmParameterException ex) {
throw new XMLSignatureException("empty", ex);
}
|
protected byte[] | engineSign()
try {
return this._signatureAlgorithm.sign();
} catch (SignatureException ex) {
throw new XMLSignatureException("empty", ex);
}
|
protected void | engineUpdate(byte input)
try {
this._signatureAlgorithm.update(input);
} catch (SignatureException ex) {
throw new XMLSignatureException("empty", ex);
}
|
protected void | engineUpdate(byte[] buf, int offset, int len)
try {
this._signatureAlgorithm.update(buf, offset, len);
} catch (SignatureException ex) {
throw new XMLSignatureException("empty", ex);
}
|
protected void | engineUpdate(byte[] input)
try {
this._signatureAlgorithm.update(input);
} catch (SignatureException ex) {
throw new XMLSignatureException("empty", ex);
}
|
protected boolean | engineVerify(byte[] signature)
try {
return this._signatureAlgorithm.verify(signature);
} catch (SignatureException ex) {
throw new XMLSignatureException("empty", ex);
}
|