You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2004/11/08 23:35:41 UTC

cvs commit: jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi CredentialPasswordEncoder.java CredentialPasswordValidator.java PasswordCredentialProvider.java InternalPasswordCredentialInterceptor.java

ate         2004/11/08 14:35:41

  Modified:    components/security/src/java/org/apache/jetspeed/security/spi/impl
                        MessageDigestCredentialPasswordEncoder.java
                        SimpleCredentialPasswordValidator.java
                        DefaultCredentialPasswordValidator.java
                        DefaultInternalPasswordCredentialInterceptor.java
                        InternalPasswordCredentialStateHandlingInterceptor.java
                        DefaultPasswordCredentialProvider.java
               components/security/src/java/org/apache/jetspeed/security/spi
                        CredentialPasswordEncoder.java
                        CredentialPasswordValidator.java
                        PasswordCredentialProvider.java
                        InternalPasswordCredentialInterceptor.java
  Log:
  ASF license added
  
  Revision  Changes    Path
  1.2       +22 -0     jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/MessageDigestCredentialPasswordEncoder.java
  
  Index: MessageDigestCredentialPasswordEncoder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/MessageDigestCredentialPasswordEncoder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MessageDigestCredentialPasswordEncoder.java	8 Nov 2004 03:23:35 -0000	1.1
  +++ MessageDigestCredentialPasswordEncoder.java	8 Nov 2004 22:35:41 -0000	1.2
  @@ -1,3 +1,17 @@
  +/* Copyright 2004 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 org.apache.jetspeed.security.spi.impl;
   
   import java.security.MessageDigest;
  @@ -7,6 +21,14 @@
   import org.apache.jetspeed.security.SecurityException;
   import org.apache.jetspeed.security.spi.CredentialPasswordEncoder;
   
  +/**
  + * <p>
  + * MessageDigestCredentialPasswordEncoder
  + * </p>
  + * 
  + * @author <a href="mailto:ate@apache.org">Ate Douma</a>
  + * @version $Id$
  + */
   public class MessageDigestCredentialPasswordEncoder implements CredentialPasswordEncoder
   {
       MessageDigest digester;
  
  
  
  1.2       +22 -0     jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/SimpleCredentialPasswordValidator.java
  
  Index: SimpleCredentialPasswordValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/SimpleCredentialPasswordValidator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleCredentialPasswordValidator.java	8 Nov 2004 03:23:35 -0000	1.1
  +++ SimpleCredentialPasswordValidator.java	8 Nov 2004 22:35:41 -0000	1.2
  @@ -1,8 +1,30 @@
  +/* Copyright 2004 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 org.apache.jetspeed.security.spi.impl;
   
   import org.apache.jetspeed.security.SecurityException;
   import org.apache.jetspeed.security.spi.CredentialPasswordValidator;
   
  +/**
  + * <p>
  + * SimpleCredentialPasswordValidator
  + * </p>
  + * 
  + * @author <a href="mailto:ate@apache.org">Ate Douma</a>
  + * @version $Id$
  + */
   public class SimpleCredentialPasswordValidator implements CredentialPasswordValidator
   {
       private int minPasswordLength;
  
  
  
  1.2       +22 -0     jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/DefaultCredentialPasswordValidator.java
  
  Index: DefaultCredentialPasswordValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/DefaultCredentialPasswordValidator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultCredentialPasswordValidator.java	8 Nov 2004 03:23:35 -0000	1.1
  +++ DefaultCredentialPasswordValidator.java	8 Nov 2004 22:35:41 -0000	1.2
  @@ -1,8 +1,30 @@
  +/* Copyright 2004 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 org.apache.jetspeed.security.spi.impl;
   
   import org.apache.jetspeed.security.SecurityException;
   import org.apache.jetspeed.security.spi.CredentialPasswordValidator;
   
  +/**
  + * <p>
  + * DefaultCredentialPasswordValidator
  + * </p>
  + * 
  + * @author <a href="mailto:ate@apache.org">Ate Douma</a>
  + * @version $Id$
  + */
   public class DefaultCredentialPasswordValidator implements CredentialPasswordValidator
   {
       public DefaultCredentialPasswordValidator()
  
  
  
  1.2       +22 -0     jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/DefaultInternalPasswordCredentialInterceptor.java
  
  Index: DefaultInternalPasswordCredentialInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/DefaultInternalPasswordCredentialInterceptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultInternalPasswordCredentialInterceptor.java	8 Nov 2004 03:23:35 -0000	1.1
  +++ DefaultInternalPasswordCredentialInterceptor.java	8 Nov 2004 22:35:41 -0000	1.2
  @@ -1,3 +1,17 @@
  +/* Copyright 2004 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 org.apache.jetspeed.security.spi.impl;
   
   import java.util.Collection;
  @@ -8,6 +22,14 @@
   import org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor;
   import org.apache.jetspeed.security.spi.PasswordCredentialProvider;
   
  +/**
  + * <p>
  + * DefaultInternalPasswordCredentialInterceptor
  + * </p>
  + * 
  + * @author <a href="mailto:ate@apache.org">Ate Douma</a>
  + * @version $Id$
  + */
   public class DefaultInternalPasswordCredentialInterceptor implements InternalPasswordCredentialInterceptor
   {
       public DefaultInternalPasswordCredentialInterceptor()
  
  
  
  1.2       +22 -0     jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/InternalPasswordCredentialStateHandlingInterceptor.java
  
  Index: InternalPasswordCredentialStateHandlingInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/InternalPasswordCredentialStateHandlingInterceptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InternalPasswordCredentialStateHandlingInterceptor.java	8 Nov 2004 03:23:35 -0000	1.1
  +++ InternalPasswordCredentialStateHandlingInterceptor.java	8 Nov 2004 22:35:41 -0000	1.2
  @@ -1,3 +1,17 @@
  +/* Copyright 2004 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 org.apache.jetspeed.security.spi.impl;
   
   import java.sql.Date;
  @@ -8,6 +22,14 @@
   import org.apache.jetspeed.security.om.InternalUserPrincipal;
   import org.apache.jetspeed.security.spi.PasswordCredentialProvider;
   
  +/**
  + * <p>
  + * InternalPasswordCredentialStateHandlingInterceptor
  + * </p>
  + * 
  + * @author <a href="mailto:ate@apache.org">Ate Douma</a>
  + * @version $Id$
  + */
   public class InternalPasswordCredentialStateHandlingInterceptor extends DefaultInternalPasswordCredentialInterceptor
   {
       private int maxNumberOfAuthenticationFailures;
  
  
  
  1.2       +22 -0     jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/DefaultPasswordCredentialProvider.java
  
  Index: DefaultPasswordCredentialProvider.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/DefaultPasswordCredentialProvider.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultPasswordCredentialProvider.java	8 Nov 2004 03:23:35 -0000	1.1
  +++ DefaultPasswordCredentialProvider.java	8 Nov 2004 22:35:41 -0000	1.2
  @@ -1,3 +1,17 @@
  +/* Copyright 2004 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 org.apache.jetspeed.security.spi.impl;
   
   import org.apache.jetspeed.security.PasswordCredential;
  @@ -7,6 +21,14 @@
   import org.apache.jetspeed.security.spi.CredentialPasswordValidator;
   import org.apache.jetspeed.security.spi.PasswordCredentialProvider;
   
  +/**
  + * <p>
  + * DefaultPasswordCredentialProvider
  + * </p>
  + * 
  + * @author <a href="mailto:ate@apache.org">Ate Douma</a>
  + * @version $Id$
  + */
   public class DefaultPasswordCredentialProvider implements PasswordCredentialProvider
   {
       private CredentialPasswordValidator validator;
  
  
  
  1.2       +22 -0     jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/CredentialPasswordEncoder.java
  
  Index: CredentialPasswordEncoder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/CredentialPasswordEncoder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CredentialPasswordEncoder.java	8 Nov 2004 03:23:36 -0000	1.1
  +++ CredentialPasswordEncoder.java	8 Nov 2004 22:35:41 -0000	1.2
  @@ -1,7 +1,29 @@
  +/* Copyright 2004 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 org.apache.jetspeed.security.spi;
   
   import org.apache.jetspeed.security.SecurityException;
   
  +/**
  + * <p>
  + * CredentialPasswordEncoder
  + * </p>
  + * 
  + * @author <a href="mailto:ate@apache.org">Ate Douma</a>
  + * @version $Id$
  + */
   public interface CredentialPasswordEncoder
   {
       String encode(String userName, String clearTextPassword) throws SecurityException;
  
  
  
  1.2       +22 -0     jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/CredentialPasswordValidator.java
  
  Index: CredentialPasswordValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/CredentialPasswordValidator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CredentialPasswordValidator.java	8 Nov 2004 03:23:36 -0000	1.1
  +++ CredentialPasswordValidator.java	8 Nov 2004 22:35:41 -0000	1.2
  @@ -1,7 +1,29 @@
  +/* Copyright 2004 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 org.apache.jetspeed.security.spi;
   
   import org.apache.jetspeed.security.SecurityException;
   
  +/**
  + * <p>
  + * CredentialPasswordValidator
  + * </p>
  + * 
  + * @author <a href="mailto:ate@apache.org">Ate Douma</a>
  + * @version $Id$
  + */
   public interface CredentialPasswordValidator
   {
       void validate(String clearTextPassword) throws SecurityException;
  
  
  
  1.2       +22 -0     jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/PasswordCredentialProvider.java
  
  Index: PasswordCredentialProvider.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/PasswordCredentialProvider.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PasswordCredentialProvider.java	8 Nov 2004 03:23:36 -0000	1.1
  +++ PasswordCredentialProvider.java	8 Nov 2004 22:35:41 -0000	1.2
  @@ -1,9 +1,31 @@
  +/* Copyright 2004 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 org.apache.jetspeed.security.spi;
   
   import org.apache.jetspeed.security.PasswordCredential;
   import org.apache.jetspeed.security.SecurityException;
   import org.apache.jetspeed.security.om.InternalCredential;
   
  +/**
  + * <p>
  + * PasswordCredentialProvider
  + * </p>
  + * 
  + * @author <a href="mailto:ate@apache.org">Ate Douma</a>
  + * @version $Id$
  + */
   public interface PasswordCredentialProvider
   {
       Class getPasswordCredentialClass();
  
  
  
  1.2       +22 -0     jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/InternalPasswordCredentialInterceptor.java
  
  Index: InternalPasswordCredentialInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/InternalPasswordCredentialInterceptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InternalPasswordCredentialInterceptor.java	8 Nov 2004 03:23:36 -0000	1.1
  +++ InternalPasswordCredentialInterceptor.java	8 Nov 2004 22:35:41 -0000	1.2
  @@ -1,3 +1,17 @@
  +/* Copyright 2004 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 org.apache.jetspeed.security.spi;
   
   import java.util.Collection;
  @@ -6,6 +20,14 @@
   import org.apache.jetspeed.security.om.InternalCredential;
   import org.apache.jetspeed.security.om.InternalUserPrincipal;
   
  +/**
  + * <p>
  + * InternalPasswordCredentialInterceptor
  + * </p>
  + * 
  + * @author <a href="mailto:ate@apache.org">Ate Douma</a>
  + * @version $Id$
  + */
   public interface InternalPasswordCredentialInterceptor
   {
       boolean afterLoad(PasswordCredentialProvider pcProvider, String userName, InternalCredential credential) throws SecurityException;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org