001package org.apache.archiva.redback.policy; 002 003import org.apache.archiva.redback.users.User; 004 005/* 006 * Copyright 2001-2006 The Apache Software Foundation. 007 * 008 * Licensed under the Apache License, Version 2.0 (the "License"); 009 * you may not use this file except in compliance with the License. 010 * You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, software 015 * distributed under the License is distributed on an "AS IS" BASIS, 016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 017 * See the License for the specific language governing permissions and 018 * limitations under the License. 019 */ 020 021/** 022 * MustChangePasswordException 023 * 024 * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a> 025 * 026 */ 027public class MustChangePasswordException 028 extends PolicyViolationException 029{ 030 private final User user; 031 032 public MustChangePasswordException( String message, User user ) 033 { 034 super( message ); 035 this.user = user; 036 } 037 038 public User getUser() 039 { 040 return user; 041 } 042}