public class SignatureProcessor extends Object
| Constructor and Description |
|---|
SignatureProcessor()
Creates a new instance of SignatureProcessor
|
| Modifier and Type | Method and Description |
|---|---|
JAXBContext |
getJAXBContext() |
byte[] |
performDSASign(Key privateKey,
SignedInfo signedInfo) |
byte[] |
performHMACSign(Key key,
SignedInfo signedInfo,
int outputLength) |
byte[] |
performRSASign(Key privateKey,
SignedInfo signedInfo,
String signatureAlgo) |
void |
setCryptoContext(XMLCryptoContext context) |
void |
setJAXBContext(JAXBContext _jaxbContext) |
boolean |
verifyDSASignature(Key publicKey,
SignedInfo si,
byte[] signatureValue) |
boolean |
verifyHMACSignature(Key key,
SignedInfo si,
byte[] signatureValue,
int outputLength) |
boolean |
verifyRSASignature(Key publicKey,
SignedInfo si,
byte[] signatureValue,
String signatureAlgo) |
public SignatureProcessor()
public void setJAXBContext(JAXBContext _jaxbContext)
public JAXBContext getJAXBContext()
public void setCryptoContext(XMLCryptoContext context)
public byte[] performRSASign(Key privateKey, SignedInfo signedInfo, String signatureAlgo) throws InvalidKeyException
InvalidKeyExceptionpublic byte[] performHMACSign(Key key, SignedInfo signedInfo, int outputLength) throws InvalidKeyException
InvalidKeyExceptionpublic byte[] performDSASign(Key privateKey, SignedInfo signedInfo) throws InvalidKeyException
InvalidKeyExceptionpublic boolean verifyDSASignature(Key publicKey, SignedInfo si, byte[] signatureValue) throws InvalidKeyException, SignatureException
public boolean verifyHMACSignature(Key key, SignedInfo si, byte[] signatureValue, int outputLength) throws InvalidKeyException, SignatureException
public boolean verifyRSASignature(Key publicKey, SignedInfo si, byte[] signatureValue, String signatureAlgo) throws InvalidKeyException, SignatureException
Copyright © 2005–2018 Oracle Corporation. All rights reserved.