[jboss-cvs] JBossAS SVN: r98769 - projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jaspi-api/src/main/javax/security/auth/message/callback.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 22 13:01:31 EST 2009
Author: jaikiran
Date: 2009-12-22 13:01:31 -0500 (Tue, 22 Dec 2009)
New Revision: 98769
Removed:
projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jaspi-api/src/main/javax/security/auth/message/callback/PrivateKeyCallback.java
Log:
Autoversioning commit: a non-deltaV client made a change to
/projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jaspi-api/src/main/javax/security/auth/message/callback/PrivateKeyCallback.java
Deleted: projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jaspi-api/src/main/javax/security/auth/message/callback/PrivateKeyCallback.java
===================================================================
--- projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jaspi-api/src/main/javax/security/auth/message/callback/PrivateKeyCallback.java 2009-12-22 18:01:17 UTC (rev 98768)
+++ projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jaspi-api/src/main/javax/security/auth/message/callback/PrivateKeyCallback.java 2009-12-22 18:01:31 UTC (rev 98769)
@@ -1,213 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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 javax.security.auth.message.callback;
-
-import java.math.BigInteger;
-import java.security.PrivateKey;
-import java.security.cert.Certificate;
-
-import javax.security.auth.callback.Callback;
-import javax.security.auth.x500.X500Principal;
-
-//$Id$
-
-/**
- * Callback for private key and corresponding certificate chain.
- * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
- * @author Charlie Lai, Ron Monzillo (Javadoc for JSR-196)
- * @since May 11, 2006
- * @version $Revision$
- */
-public class PrivateKeyCallback implements Callback
-{
- /**
- * <p>Marker interface for private key request types.</p>
- */
- public static interface Request
- {
- }
-
-
- /**
- * Request type for private keys that are identified via an alias.
- */
- public static class AliasRequest implements Request
- {
- private String alias = null;
-
- /**
- * <p>Construct an AliasRequest with an alias.</p>
- * <p>The alias is used to directly identify the private key to be returned.
- * The corresponding certificate chain for the private key is also returned.</p>
- *
- * <p>If the alias is null, the handler of the callback relies on its own default.</p>
- * @param alias name identifier for the private key, or null.
- */
- public AliasRequest(String alias)
- {
- this.alias = alias;
- }
-
- /**
- * Get the alias.
- * @return the alias, or null.
- */
- public String getAlias()
- {
- return alias;
- }
- }
-
- /**
- * <p>Request type for private keys that are identified via an issuer/serial number.</p>
- */
- public static class IssuerSerialNumRequest
- {
- private X500Principal issuer;
- private java.math.BigInteger serialNumber;
-
- /**
- * <p>Constructs a IssuerSerialNumRequest with an issuer/serial number.</p>
- *
- * @param issuer the X500Principal name of the certificate issuer, or null.
- * @param serialNumber the serial number of the certificate, or null.
- */
- public IssuerSerialNumRequest(X500Principal issuer, BigInteger serialNumber)
- {
- this.issuer = issuer;
- this.serialNumber = serialNumber;
- }
-
- /**
- * Get the issuer.
- * @return the issuer, or null.
- */
- public X500Principal getIssuer()
- {
- return issuer;
- }
-
- /**
- * Get the serial number.
- * @return the issuer, or null.
- */
- public BigInteger getSerialNumber()
- {
- return serialNumber;
- }
- }
- /**
- * <p>Request type for private keys that are identified via a SubjectKeyID</p>
- */
- public static class SubjectKeyIDRequest
- {
- private byte[] subjectKeyID;
-
- /**
- * <p>Construct a SubjectKeyIDRequest with an subjectKeyID.</p>
- *
- * <p>The subjectKeyID is used to directly identify the private key to be returned.
- * The corresponding certificate chain for the private key is also returned.</p>
- *
- * <p>If the subjectKeyID is null, the handler of the callback relies on its
- * own default.</p>
- *
- * @param keyID identifier for the private key, or null.
- */
- public SubjectKeyIDRequest(byte[] keyID)
- {
- subjectKeyID = keyID;
- }
-
- /**
- * Get the subjectKeyID.
- * @return the subjectKeyID, or null.
- */
- public byte[] getSubjectKeyID()
- {
- return subjectKeyID;
- }
- }
-
- //Private Variables
- private Request request = null;
- private Certificate[] chain = null;
- private PrivateKey key = null;
-
- /**
- *
- * <p>Constructs this PrivateKeyCallback with a private key Request object.</p>
- * <p>The request object identifies the private key to be returned. The corresponding
- * certificate chain for the private key is also returned.</p>
- *
- * <p>If the request object is null, the handler of the callback relies on its
- * own default.</p>
- *
- * @param request identifier for the private key, or null.
- */
- public PrivateKeyCallback(Request request)
- {
- this.request = request;
- }
-
- /**
- *
- * @return
- */
- public Certificate[] getChain()
- {
- return chain;
- }
-
- /**
- * Get the requested private key.
- * @return the private key, or null if the key could not be found.
- */
- public PrivateKey getKey()
- {
- return key;
- }
-
- /**
- * Get the Request object which identifies the private key to be returned.
- * @return the Request object which identifies the private key to be returned,
- * or null. If null, the handler of the callback relies on its own default.
- */
- public Request getRequest()
- {
- return request;
- }
-
- /**
- * <p>Set the requested private key.</p>
- * <p>If the requested private key or chain could not be found, then
- * both values must be set to null.</p>
- *
- * @param key the private key, or null.
- * @param chain the corresponding certificate chain, or null.
- */
- public void setKey(PrivateKey key, Certificate[] chain)
- {
- this.key = key;
- this.chain = chain;
- }
-}
More information about the jboss-cvs-commits
mailing list