/* * JBoss, Home of Professional Open Source. * Copyright 2008, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.picketlink.identity.federation.core.transfer; import java.security.KeyPair; import java.security.cert.X509Certificate; import org.picketlink.identity.federation.core.util.XMLSignatureUtil; import org.w3c.dom.Document; import org.w3c.dom.Node; /** * A Transfer Object used by {@link XMLSignatureUtil} * * @author anil saldhana */ public class SignatureUtilTransferObject { private X509Certificate x509Certificate; private Document documentToBeSigned; private KeyPair keyPair; private Node nextSibling; private String digestMethod; private String referenceURI; private String signatureMethod; public Document getDocumentToBeSigned() { return documentToBeSigned; } public void setDocumentToBeSigned(Document documentToBeSigned) { this.documentToBeSigned = documentToBeSigned; } public KeyPair getKeyPair() { return keyPair; } public void setKeyPair(KeyPair keyPair) { this.keyPair = keyPair; } public Node getNextSibling() { return nextSibling; } public void setNextSibling(Node nextSibling) { this.nextSibling = nextSibling; } public String getDigestMethod() { return digestMethod; } public void setDigestMethod(String digestMethod) { this.digestMethod = digestMethod; } public String getReferenceURI() { return referenceURI; } public void setReferenceURI(String referenceURI) { this.referenceURI = referenceURI; } public String getSignatureMethod() { return signatureMethod; } public void setSignatureMethod(String signatureMethod) { this.signatureMethod = signatureMethod; } /** * Get the {@link X509Certificate} used for signing * @since 2.5.0 * @return */ public X509Certificate getX509Certificate() { return x509Certificate; } /** * Set the {@link X509Certificate} used for signing * @since 2.5.0 * @param x509Certificate */ public void setX509Certificate(X509Certificate x509Certificate) { this.x509Certificate = x509Certificate; } }