com.sun.xml.ws.security.opt.crypto.dsig
Class SignatureProcessor

java.lang.Object
  extended by com.sun.xml.ws.security.opt.crypto.dsig.SignatureProcessor

public class SignatureProcessor
extends Object

Author:
K.Venugopal@sun.com

Constructor Summary
SignatureProcessor()
          Creates a new instance of SignatureProcessor
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureProcessor

public SignatureProcessor()
Creates a new instance of SignatureProcessor

Method Detail

setJAXBContext

public void setJAXBContext(JAXBContext _jaxbContext)

getJAXBContext

public 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
Throws:
InvalidKeyException
SignatureException

verifyHMACSignature

public boolean verifyHMACSignature(Key key,
                                   SignedInfo si,
                                   byte[] signatureValue,
                                   int outputLength)
                            throws InvalidKeyException,
                                   SignatureException
Throws:
InvalidKeyException
SignatureException

verifyRSASignature

public boolean verifyRSASignature(Key publicKey,
                                  SignedInfo si,
                                  byte[] signatureValue,
                                  String signatureAlgo)
                           throws InvalidKeyException,
                                  SignatureException
Throws:
InvalidKeyException
SignatureException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.