Author: adc
Date: Sun Aug 20 00:31:41 2006
New Revision: 432951
URL: http://svn.apache.org/viewvc?rev=432951&view=rev
Log:
GERONIMO-2336 Java Authentication Service Provider Interface for Containers
Added:
geronimo/specs/branches/geronimo-spec-jaspi/
geronimo/specs/branches/geronimo-spec-jaspi/LICENSE.txt (with props)
geronimo/specs/branches/geronimo-spec-jaspi/NOTICE.txt (with props)
geronimo/specs/branches/geronimo-spec-jaspi/pom.xml (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/
geronimo/specs/branches/geronimo-spec-jaspi/src/main/
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthException.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthStatus.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ClientAuth.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessageInfo.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessagePolicy.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ServerAuth.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CallerPrincipalCallback.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CertStoreCallback.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/GroupPrincipalCallback.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PasswordValidationCallback.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PrivateKeyCallback.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/SecretKeyCallback.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/TrustStoreCallback.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfig.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigProvider.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthConfig.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthContext.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/RegistrationListener.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthConfig.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthContext.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ClientAuthModule.java (with props)
geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ServerAuthModule.java (with props)
Added: geronimo/specs/branches/geronimo-spec-jaspi/LICENSE.txt
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/LICENSE.txt?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/LICENSE.txt (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/LICENSE.txt Sun Aug 20 00:31:41 2006
@@ -0,0 +1,203 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/LICENSE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/LICENSE.txt
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/LICENSE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/NOTICE.txt
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/NOTICE.txt?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/NOTICE.txt (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/NOTICE.txt Sun Aug 20 00:31:41 2006
@@ -0,0 +1,3 @@
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/NOTICE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/NOTICE.txt
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/NOTICE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/pom.xml?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/pom.xml (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/pom.xml Sun Aug 20 00:31:41 2006
@@ -0,0 +1,18 @@
+<project>
+ <parent>
+ <artifactId>specs</artifactId>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <version>1.2-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>geronimo-jaspi_1.0pr_spec</artifactId>
+ <name>Java Authentication Service Provider Interface for Containers</name>
+ <version>1.0-SNAPSHOT</version>
+
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/geronimo/specs/trunk/geronimo-spec-jaspi/</connection>
+ <developerConnection>scm:svn:http://svn.apache.org/repos/asf/geronimo/specs/trunk/geronimo-spec-jaspi/</developerConnection>
+ <url>http://svn.apache.org/viewcvs.cgi/geronimo/specs/trunk/geronimo-spec-jaspi/</url>
+ </scm>
+
+</project>
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthException.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthException.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthException.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthException.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,33 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message;
+
+import javax.security.auth.login.LoginException;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class AuthException extends LoginException {
+
+ public AuthException() {
+ }
+
+ public AuthException(String msg) {
+ super(msg);
+ }
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthException.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthException.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthStatus.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthStatus.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthStatus.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthStatus.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,30 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class AuthStatus {
+
+ static AuthStatus FAILURE = new AuthStatus();
+ static AuthStatus SEND_CONTINUE = new AuthStatus();
+ static AuthStatus SEND_FAILURE = new AuthStatus();
+ static AuthStatus SEND_SUCCESS = new AuthStatus();
+ static AuthStatus SUCCESS = new AuthStatus();
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthStatus.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthStatus.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/AuthStatus.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ClientAuth.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ClientAuth.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ClientAuth.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ClientAuth.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,32 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message;
+
+import javax.security.auth.Subject;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface ClientAuth {
+
+ void cleanSubject(MessageInfo messageInfo, Subject subject);
+
+ AuthStatus secureRequest(MessageInfo messageInfo, Subject clientSubject);
+
+ AuthStatus validateResponse(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject);
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ClientAuth.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ClientAuth.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ClientAuth.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessageInfo.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessageInfo.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessageInfo.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessageInfo.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,36 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message;
+
+import java.util.Map;
+
+/**
+ * @version $Rev$ $Date: $
+ */
+public interface MessageInfo {
+
+ Map getMap();
+
+ Object getRequestMessage();
+
+ Object getResponseMessage();
+
+ void setRequestMessage(Object request);
+
+ void setResponseMessage(Object response);
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessageInfo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessageInfo.java
------------------------------------------------------------------------------
svn:keywords = "Date Revision Id Author"
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessageInfo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessagePolicy.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessagePolicy.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessagePolicy.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessagePolicy.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,77 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class MessagePolicy {
+
+ private final TargetPolicy[] targetPolicies;
+ private final boolean mandatory;
+
+ public MessagePolicy(TargetPolicy[] targetPolicies, boolean mandatory) {
+ this.targetPolicies = targetPolicies;
+ this.mandatory = mandatory;
+ }
+
+ public TargetPolicy[] getTargetPolicies() {
+ return targetPolicies;
+ }
+
+ public boolean isMandatory() {
+ return mandatory;
+ }
+
+ public static interface ProtectionPolicy {
+
+ static String AUTHENTICATE_CONTENT = "javax.security.auth.message.AUTHENTICATE_CONTENT";
+ static String AUTHENTICATE_RECIPIENT = "javax.security.auth.message.AUTHENTICATE_RECIPIENT";
+ static String AUTHENTICATE_SENDER = "javax.security.auth.message.AUTHENTICATE_SENDER";
+
+ public String getID();
+ }
+
+ public static interface Target {
+
+ Object get(MessageInfo messageInfo);
+
+ void put(MessageInfo messageInfo, Object data);
+
+ void remove(MessageInfo messageInfo);
+ }
+
+ public static class TargetPolicy {
+
+ private final Target[] targets;
+ private final ProtectionPolicy protectionPolicy;
+
+ public TargetPolicy(Target[] targets, ProtectionPolicy protectionPolicy) {
+ this.targets = targets;
+ this.protectionPolicy = protectionPolicy;
+ }
+
+ public Target[] getTargets() {
+ return targets;
+ }
+
+ public ProtectionPolicy getProtectionPolicy() {
+ return protectionPolicy;
+ }
+ }
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessagePolicy.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessagePolicy.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/MessagePolicy.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ServerAuth.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ServerAuth.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ServerAuth.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ServerAuth.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,32 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message;
+
+import javax.security.auth.Subject;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface ServerAuth {
+
+ void cleanSubject(MessageInfo messageInfo, Subject subject);
+
+ AuthStatus secureResponse(MessageInfo messageInfo, Subject serviceSubject);
+
+ AuthStatus validateRequest(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject);
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ServerAuth.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ServerAuth.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/ServerAuth.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CallerPrincipalCallback.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CallerPrincipalCallback.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CallerPrincipalCallback.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CallerPrincipalCallback.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,56 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.callback;
+
+import javax.security.auth.Subject;
+import javax.security.auth.callback.Callback;
+import java.security.Principal;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class CallerPrincipalCallback implements Callback {
+
+ private final Subject subject;
+ private final Principal principal;
+ private final String name;
+
+ public CallerPrincipalCallback(Subject subject, Principal principal) {
+ this.subject = subject;
+ this.principal = principal;
+ this.name = null;
+ }
+
+ public CallerPrincipalCallback(Subject subject, String name) {
+ this.subject = subject;
+ this.principal = null;
+ this.name = name;
+ }
+
+ public Subject getSubject() {
+ return subject;
+ }
+
+ public Principal getPrincipal() {
+ return principal;
+ }
+
+ public String getName() {
+ return name;
+ }
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CallerPrincipalCallback.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CallerPrincipalCallback.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CallerPrincipalCallback.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CertStoreCallback.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CertStoreCallback.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CertStoreCallback.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CertStoreCallback.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,37 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.callback;
+
+import javax.security.auth.callback.Callback;
+import java.security.cert.CertStore;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class CertStoreCallback implements Callback {
+
+ private CertStore certStore;
+
+ public CertStore getCertStore() {
+ return certStore;
+ }
+
+ public void setCertStore(CertStore certStore) {
+ this.certStore = certStore;
+ }
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CertStoreCallback.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CertStoreCallback.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/CertStoreCallback.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/GroupPrincipalCallback.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/GroupPrincipalCallback.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/GroupPrincipalCallback.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/GroupPrincipalCallback.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,43 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.callback;
+
+import javax.security.auth.Subject;
+import javax.security.auth.callback.Callback;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class GroupPrincipalCallback implements Callback {
+
+ private final Subject subject;
+ private final String[] groups;
+
+ public GroupPrincipalCallback(Subject subject, String[] groups) {
+ this.subject = subject;
+ this.groups = groups;
+ }
+
+ public Subject getSubject() {
+ return subject;
+ }
+
+ public String[] getGroups() {
+ return groups;
+ }
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/GroupPrincipalCallback.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/GroupPrincipalCallback.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/GroupPrincipalCallback.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PasswordValidationCallback.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PasswordValidationCallback.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PasswordValidationCallback.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PasswordValidationCallback.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,61 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.callback;
+
+import javax.security.auth.callback.Callback;
+import java.util.Arrays;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class PasswordValidationCallback implements Callback {
+
+ private final String username;
+ private char[] password;
+ private boolean result;
+
+ public PasswordValidationCallback(String username, char[] password) {
+ this.username = username;
+ this.password = password;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public char[] getPassword() {
+ char[] result = new char[password.length];
+
+ System.arraycopy(password, 0, result, 0, password.length);
+
+ return result;
+ }
+
+ public void clearPassword() {
+ Arrays.fill(password, (char) 0);
+ password = new char[0];
+ }
+
+ public boolean isResult() {
+ return result;
+ }
+
+ public void setResult(boolean result) {
+ this.result = result;
+ }
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PasswordValidationCallback.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PasswordValidationCallback.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PasswordValidationCallback.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PrivateKeyCallback.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PrivateKeyCallback.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PrivateKeyCallback.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PrivateKeyCallback.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,102 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.callback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.x500.X500Principal;
+import java.math.BigInteger;
+import java.security.PrivateKey;
+import java.security.cert.Certificate;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class PrivateKeyCallback implements Callback {
+
+ private final Request request;
+ private Certificate[] chain;
+ private PrivateKey key;
+
+ public PrivateKeyCallback(Request request) {
+ this.request = request;
+ }
+
+ public Request getRequest() {
+ return request;
+ }
+
+ public Certificate[] getChain() {
+ return chain;
+ }
+
+ public PrivateKey getKey() {
+ return key;
+ }
+
+ void setKey(PrivateKey key, Certificate[] chain) {
+ this.key = key;
+ this.chain = chain;
+ }
+
+ public static interface Request {
+ }
+
+ static class AliasRequest implements Request {
+
+ private final String alias;
+
+ public AliasRequest(String alias) {
+ this.alias = alias;
+ }
+
+ public String getAlias() {
+ return alias;
+ }
+ }
+
+ public static class SubjectKeyIDRequest implements Request {
+
+ private final byte[] subjectKeyID;
+
+ public SubjectKeyIDRequest(byte[] subjectKeyID) {
+ this.subjectKeyID = subjectKeyID;
+ }
+
+ public byte[] getSubjectKeyID() {
+ return subjectKeyID;
+ }
+ }
+
+ public static class IssuerSerialNumRequest implements Request {
+ private final X500Principal issuer;
+ private final BigInteger serialNum;
+
+ public IssuerSerialNumRequest(X500Principal issuer, BigInteger serialNum) {
+ this.issuer = issuer;
+ this.serialNum = serialNum;
+ }
+
+ public X500Principal getIssuer() {
+ return issuer;
+ }
+
+ public BigInteger getSerialNum() {
+ return serialNum;
+ }
+ }
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PrivateKeyCallback.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PrivateKeyCallback.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/PrivateKeyCallback.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/SecretKeyCallback.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/SecretKeyCallback.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/SecretKeyCallback.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/SecretKeyCallback.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,62 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.callback;
+
+import javax.security.auth.callback.Callback;
+import javax.crypto.SecretKey;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class SecretKeyCallback implements Callback {
+
+ private final Request request;
+ private SecretKey key;
+
+ public SecretKeyCallback(Request request) {
+ this.request = request;
+ }
+
+ public Request getRequest() {
+ return request;
+ }
+
+ public SecretKey getKey() {
+ return key;
+ }
+
+ public void setKey(SecretKey key) {
+ this.key = key;
+ }
+
+ public static interface Request {
+ }
+
+ public class AliasRequest implements Request {
+
+ private final String alias;
+
+ public AliasRequest(String alias) {
+ this.alias = alias;
+ }
+
+ public String getAlias() {
+ return alias;
+ }
+ }
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/SecretKeyCallback.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/SecretKeyCallback.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/SecretKeyCallback.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/TrustStoreCallback.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/TrustStoreCallback.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/TrustStoreCallback.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/TrustStoreCallback.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,37 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.callback;
+
+import javax.security.auth.callback.Callback;
+import java.security.KeyStore;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class TrustStoreCallback implements Callback {
+
+ private KeyStore trustStore;
+
+ public KeyStore getTrustStore() {
+ return trustStore;
+ }
+
+ public void setTrustStore(KeyStore trustStore) {
+ this.trustStore = trustStore;
+ }
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/TrustStoreCallback.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/TrustStoreCallback.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/callback/TrustStoreCallback.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfig.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfig.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfig.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfig.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,34 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.config;
+
+import javax.security.auth.message.MessageInfo;
+
+/**
+ * @version $Rev$ $Date: $
+ */
+public interface AuthConfig {
+
+ java.lang.String getAppContext();
+
+ java.lang.String getMessageLayer();
+
+ java.lang.String getOperation(MessageInfo messageInfo);
+
+ void refresh();
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfig.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfig.java
------------------------------------------------------------------------------
svn:keywords = "Date Revision Id Author"
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfig.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,60 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.config;
+
+import java.util.Map;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public abstract class AuthConfigFactory {
+
+ private static AuthConfigFactory factory;
+
+ static AuthConfigFactory getFactory() {
+ return AuthConfigFactory.factory;
+ }
+
+ static void setFactory(AuthConfigFactory factory) {
+ AuthConfigFactory.factory = factory;
+ }
+
+ abstract String[] detachListener(RegistrationListener listener, String layer, String appContext);
+
+ abstract AuthConfigProvider getConfigProvider(String layer, String appContext, RegistrationListener listener);
+
+ abstract RegistrationContext getRegistrationContext(String registrationID);
+
+ abstract String[] getRegistrationIDs(AuthConfigProvider provider);
+
+ abstract void refresh();
+
+ abstract String registerConfigProvider(String className, Map properties, String layer, String appContext, String description);
+
+ abstract boolean removeRegistration(String registrationID);
+
+ public static interface RegistrationContext {
+
+ String getAppContext();
+
+ String getDescription();
+
+ String getMessageLayer();
+ }
+
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigProvider.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigProvider.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigProvider.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigProvider.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,32 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.config;
+
+import javax.security.auth.callback.CallbackHandler;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface AuthConfigProvider {
+
+ ClientAuthConfig getClientAuthConfig(String layer, String appContext, CallbackHandler handler);
+
+ ServerAuthConfig getServerAuthConfig(String layer, String appContext, CallbackHandler handler);
+
+ void refresh();
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigProvider.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigProvider.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigProvider.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthConfig.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthConfig.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthConfig.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthConfig.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,29 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.config;
+
+import javax.security.auth.Subject;
+import java.util.Map;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface ClientAuthConfig extends AuthConfig {
+
+ ClientAuthContext getAuthContext(String operation, Subject clientSubject, Map properties);
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthConfig.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthConfig.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthConfig.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthContext.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthContext.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthContext.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthContext.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,24 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.config;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface ClientAuthContext {
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthContext.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthContext.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ClientAuthContext.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/RegistrationListener.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/RegistrationListener.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/RegistrationListener.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/RegistrationListener.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,26 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.config;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface RegistrationListener {
+
+ void notify(String layer, String appContext);
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/RegistrationListener.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/RegistrationListener.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/RegistrationListener.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthConfig.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthConfig.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthConfig.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthConfig.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,29 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.config;
+
+import javax.security.auth.Subject;
+import java.util.Map;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface ServerAuthConfig extends AuthConfig {
+
+ ServerAuthContext getAuthContext(String operation, Subject serviceSubject, Map properties);
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthConfig.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthConfig.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthConfig.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthContext.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthContext.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthContext.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthContext.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,26 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.config;
+
+import javax.security.auth.message.ServerAuth;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface ServerAuthContext extends ServerAuth {
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthContext.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthContext.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/ServerAuthContext.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ClientAuthModule.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ClientAuthModule.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ClientAuthModule.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ClientAuthModule.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,33 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.module;
+
+import javax.security.auth.message.ClientAuth;
+import javax.security.auth.message.MessagePolicy;
+import javax.security.auth.callback.CallbackHandler;
+import java.util.Map;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface ClientAuthModule extends ClientAuth {
+
+ Class[] getSupportedMessageTypes();
+
+ void initialize(MessagePolicy requestPolicy, MessagePolicy responsePolicy, CallbackHandler handler, Map options);
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ClientAuthModule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ClientAuthModule.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ClientAuthModule.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ServerAuthModule.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ServerAuthModule.java?rev=432951&view=auto
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ServerAuthModule.java (added)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ServerAuthModule.java Sun Aug 20 00:31:41 2006
@@ -0,0 +1,33 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.security.auth.message.module;
+
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.message.MessagePolicy;
+import javax.security.auth.message.ServerAuth;
+import java.util.Map;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface ServerAuthModule extends ServerAuth {
+
+ Class[] getSupportedMessageTypes();
+
+ void initialize(MessagePolicy requestPolicy, MessagePolicy responsePolicy, CallbackHandler handler, Map options);
+}
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ServerAuthModule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ServerAuthModule.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Id Author
Propchange: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/module/ServerAuthModule.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
|