1/*2 * Licensed to the Apache Software Foundation (ASF) under one or more3 * contributor license agreements. See the NOTICE file distributed with4 * this work for additional information regarding copyright ownership.5 * The ASF licenses this file to You under the Apache License, Version 2.06 * (the "License"); you may not use this file except in compliance with7 * the License. You may obtain a copy of the License at8*9* http://www.apache.org/licenses/LICENSE-2.010*11* Unless required by applicable law or agreed to in writing, software12* distributed under the License is distributed on an "AS IS" BASIS,13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14* See the License for the specific language governing permissions and15* limitations under the License.16*/17packageorg.apache.jetspeed.security.spi.impl;
1819import java.util.Collection;
2021import org.apache.jetspeed.security.SecurityException;
22import org.apache.jetspeed.security.om.InternalCredential;
23import org.apache.jetspeed.security.om.InternalUserPrincipal;
24import org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor;
25import org.apache.jetspeed.security.spi.PasswordCredentialProvider;
2627/***28 * <p>29 * Base class providing default empty behavior for a {@link InternalPasswordCredentialInterceptor}30 * implementation.31 * </p>32 * 33 * @author <a href="mailto:ate@douma.nu">Ate Douma</a>34 * @version $Id$35 */36publicabstractclassAbstractInternalPasswordCredentialInterceptorImpl implements InternalPasswordCredentialInterceptor
37 {
38/***39 * @return false40 * @see org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor#afterLoad(org.apache.jetspeed.security.spi.PasswordCredentialProvider, java.lang.String, org.apache.jetspeed.security.om.InternalCredential)41 */42publicboolean afterLoad(PasswordCredentialProvider pcProvider, String userName, InternalCredential credential)
43 throws SecurityException
44 {
45return false;
46 }
4748/***49 * @return false50 * @see org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor#afterAuthenticated(org.apache.jetspeed.security.om.InternalUserPrincipal, java.lang.String, org.apache.jetspeed.security.om.InternalCredential, boolean)51 */52publicboolean afterAuthenticated(InternalUserPrincipal internalUser, String userName,
53 InternalCredential credential, boolean authenticated) throws SecurityException
54 {
55return false;
56 }
5758/***59 * @see org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor#beforeCreate(org.apache.jetspeed.security.om.InternalUserPrincipal, java.util.Collection, java.lang.String, InternalCredential, java.lang.String)60 */61publicvoid beforeCreate(InternalUserPrincipal internalUser, Collection credentials, String userName,
62 InternalCredential credential, String password) throws SecurityException
63 {
64 }
6566/***67 * @see org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor#beforeSetPassword(org.apache.jetspeed.security.om.InternalUserPrincipal, java.util.Collection, java.lang.String, org.apache.jetspeed.security.om.InternalCredential, java.lang.String, boolean)68 */69publicvoid beforeSetPassword(InternalUserPrincipal internalUser, Collection credentials, String userName,
70 InternalCredential credential, String password, boolean authenticated) throws SecurityException
71 {
72 }
73 }