Class SignatureProcessor
java.lang.Object
com.sun.xml.ws.security.opt.crypto.dsig.SignatureProcessor
- Author:
- K.Venugopal@sun.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.xml.bind.JAXBContextbyte[]performDSASign(Key privateKey, SignedInfo signedInfo) byte[]performHMACSign(Key key, SignedInfo signedInfo, int outputLength) byte[]performRSASign(Key privateKey, SignedInfo signedInfo, String signatureAlgo) voidsetCryptoContext(XMLCryptoContext context) voidsetJAXBContext(javax.xml.bind.JAXBContext _jaxbContext) booleanverifyDSASignature(Key publicKey, SignedInfo si, byte[] signatureValue) booleanverifyHMACSignature(Key key, SignedInfo si, byte[] signatureValue, int outputLength) booleanverifyRSASignature(Key publicKey, SignedInfo si, byte[] signatureValue, String signatureAlgo)
-
Constructor Details
-
SignatureProcessor
public SignatureProcessor()Creates a new instance of SignatureProcessor
-
-
Method Details
-
setJAXBContext
public void setJAXBContext(javax.xml.bind.JAXBContext _jaxbContext) -
getJAXBContext
public javax.xml.bind.JAXBContext getJAXBContext() -
setCryptoContext
-
performRSASign
public byte[] performRSASign(Key privateKey, SignedInfo signedInfo, String signatureAlgo) throws InvalidKeyException - Throws:
InvalidKeyException
-
performHMACSign
public byte[] performHMACSign(Key key, SignedInfo signedInfo, int outputLength) throws InvalidKeyException - Throws:
InvalidKeyException
-
performDSASign
- Throws:
InvalidKeyException
-
verifyDSASignature
public boolean verifyDSASignature(Key publicKey, SignedInfo si, byte[] signatureValue) throws InvalidKeyException, SignatureException -
verifyHMACSignature
public boolean verifyHMACSignature(Key key, SignedInfo si, byte[] signatureValue, int outputLength) throws InvalidKeyException, SignatureException -
verifyRSASignature
public boolean verifyRSASignature(Key publicKey, SignedInfo si, byte[] signatureValue, String signatureAlgo) throws InvalidKeyException, SignatureException
-