Class SignatureProcessor
- java.lang.Object
-
- com.sun.xml.ws.security.opt.crypto.dsig.SignatureProcessor
-
public class SignatureProcessor extends Object
- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description SignatureProcessor()
Creates a new instance of SignatureProcessor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.xml.bind.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(jakarta.xml.bind.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)
-
-
-
Method Detail
-
setJAXBContext
public void setJAXBContext(jakarta.xml.bind.JAXBContext _jaxbContext)
-
getJAXBContext
public jakarta.xml.bind.JAXBContext getJAXBContext()
-
setCryptoContext
public void setCryptoContext(XMLCryptoContext context)
-
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
public byte[] performDSASign(Key privateKey, SignedInfo signedInfo) throws InvalidKeyException
- 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
-
-