Formatierungen

git-svn-id: https://svn.libreccm.org/ccm/trunk@718 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2011-01-28 07:35:59 +00:00
parent 319a3f70da
commit 657e7e423f
14 changed files with 34 additions and 33 deletions

View File

@ -23,10 +23,10 @@ package com.arsdigita.kernel.security;
* login. Subclasses define particular errors. * login. Subclasses define particular errors.
* *
* @author Sameer Ajmani * @author Sameer Ajmani
* @version $Id: AccountException.java 287 2005-02-22 00:29:02Z sskracic $
**/ **/
public class AccountException extends KernelLoginException { public class AccountException extends KernelLoginException {
public static final String versionId = "$Id: AccountException.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
public AccountException() { public AccountException() {
super(); super();
} }

View File

@ -22,10 +22,10 @@ package com.arsdigita.kernel.security;
* Thrown when an account is accessed while expired. * Thrown when an account is accessed while expired.
* *
* @author Sameer Ajmani * @author Sameer Ajmani
* @version $Id: AccountExpiredException.java 287 2005-02-22 00:29:02Z sskracic $
**/ **/
public class AccountExpiredException extends AccountException { public class AccountExpiredException extends AccountException {
public static final String versionId = "$Id: AccountExpiredException.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
public AccountExpiredException() { public AccountExpiredException() {
super(); super();
} }

View File

@ -22,10 +22,10 @@ package com.arsdigita.kernel.security;
* Thrown when an account is accessed while locked. * Thrown when an account is accessed while locked.
* *
* @author Sameer Ajmani * @author Sameer Ajmani
**/ * @version $Id: AccountLockedException.java 287 2005-02-22 00:29:02Z sskracic $
*/
public class AccountLockedException extends AccountException { public class AccountLockedException extends AccountException {
public static final String versionId = "$Id: AccountLockedException.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
public AccountLockedException() { public AccountLockedException() {
super(); super();
} }

View File

@ -38,10 +38,10 @@ import org.apache.log4j.Logger;
* @author Sameer Ajmani * @author Sameer Ajmani
* *
* @see UserContext#login(com.arsdigita.kernel.User) * @see UserContext#login(com.arsdigita.kernel.User)
**/ * @version $Id: AdminLoginModule.java 287 2005-02-22 00:29:02Z sskracic $
*/
public class AdminLoginModule implements LoginModule { public class AdminLoginModule implements LoginModule {
public static final String versionId = "$Id: AdminLoginModule.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
private static final Logger s_log = private static final Logger s_log =
Logger.getLogger(AdminLoginModule.class.getName()); Logger.getLogger(AdminLoginModule.class.getName());

View File

@ -24,10 +24,10 @@ import org.apache.log4j.Logger;
* Logs in a user if the user has a valid authentication cookie. * Logs in a user if the user has a valid authentication cookie.
* *
* @author Sameer Ajmani * @author Sameer Ajmani
**/ * @version $Id: CookieLoginModule.java 287 2005-02-22 00:29:02Z sskracic $
*/
public class CookieLoginModule extends UserLoginModule { public class CookieLoginModule extends UserLoginModule {
public static final String versionId = "$Id: CookieLoginModule.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
private static final Logger s_log = private static final Logger s_log =
Logger.getLogger(CookieLoginModule.class.getName()); Logger.getLogger(CookieLoginModule.class.getName());

View File

@ -22,10 +22,10 @@ package com.arsdigita.kernel.security;
* Thrown when there is an error encoding a credential. * Thrown when there is an error encoding a credential.
* *
* @author Sameer Ajmani * @author Sameer Ajmani
**/ * @version $Id: CredentialEncodingException.java 287 2005-02-22 00:29:02Z sskracic $
*/
public class CredentialEncodingException extends CredentialException { public class CredentialEncodingException extends CredentialException {
public static final String versionId = "$Id: CredentialEncodingException.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
public CredentialEncodingException() { public CredentialEncodingException() {
super(); super();
} }

View File

@ -23,10 +23,10 @@ package com.arsdigita.kernel.security;
* credential during login. Subclasses define particular errors. * credential during login. Subclasses define particular errors.
* *
* @author Sameer Ajmani * @author Sameer Ajmani
**/ * @version $Id: CredentialException.java 287 2005-02-22 00:29:02Z sskracic $
*/
public class CredentialException extends KernelLoginException { public class CredentialException extends KernelLoginException {
public static final String versionId = "$Id: CredentialException.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
public CredentialException() { public CredentialException() {
super(); super();
} }

View File

@ -22,10 +22,10 @@ package com.arsdigita.kernel.security;
* Thrown when a credential has expired. * Thrown when a credential has expired.
* *
* @author Sameer Ajmani * @author Sameer Ajmani
* @version $Id: CredentialExpiredException.java 287 2005-02-22 00:29:02Z sskracic $
**/ **/
public class CredentialExpiredException extends CredentialException { public class CredentialExpiredException extends CredentialException {
public static final String versionId = "$Id: CredentialExpiredException.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
public CredentialExpiredException() { public CredentialExpiredException() {
super(); super();
} }

View File

@ -50,10 +50,10 @@ import com.arsdigita.kernel.Kernel;
* @see CredentialManager * @see CredentialManager
* *
* @author Sameer Ajmani * @author Sameer Ajmani
**/ * @version $Id: CredentialLoginModule.java 718 2005-08-18 15:34:42Z apevec $
*/
public abstract class CredentialLoginModule implements LoginModule { public abstract class CredentialLoginModule implements LoginModule {
public static final String versionId = "$Id: CredentialLoginModule.java 718 2005-08-18 15:34:42Z apevec $ by $Author: apevec $, $DateTime: 2004/08/16 18:10:38 $";
private static final Logger s_log = private static final Logger s_log =
Logger.getLogger(CredentialLoginModule.class.getName()); Logger.getLogger(CredentialLoginModule.class.getName());

View File

@ -33,26 +33,27 @@ import org.apache.log4j.Logger;
* @see CredentialLoginModule * @see CredentialLoginModule
* *
* @author Sameer Ajmani * @author Sameer Ajmani
**/ * @version $Id: CredentialManager.java 287 2005-02-22 00:29:02Z sskracic $
*/
public abstract class CredentialManager { public abstract class CredentialManager {
public static final String versionId = "$Id: CredentialManager.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $"; /** Logging instance */
private static final Logger s_log = private static final Logger s_log =
Logger.getLogger(URLManager.class.getName()); Logger.getLogger(URLManager.class.getName());
// the login module associated with this manager /** The login module associated with this manager */
private CredentialLoginModule m_module; private CredentialLoginModule m_module;
/** /**
* Constructs a new <code>CredentialManager</code>. * Constructs a new <code>CredentialManager</code>.
**/ */
protected CredentialManager() { protected CredentialManager() {
} }
/** /**
* Returns the <code>CredentialLoginModule</code> associated with this * Returns the <code>CredentialLoginModule</code> associated with this
* <code>CredentialManager</code>. * <code>CredentialManager</code>.
**/ */
protected CredentialLoginModule getModule() { protected CredentialLoginModule getModule() {
return m_module; return m_module;
} }
@ -63,7 +64,7 @@ public abstract class CredentialManager {
* *
* @param module the <code>CredentialLoginModule</code> associated with * @param module the <code>CredentialLoginModule</code> associated with
* this <code>CredentialManager</code>. * this <code>CredentialManager</code>.
**/ */
protected void initialize(CredentialLoginModule module, protected void initialize(CredentialLoginModule module,
Subject subject, Subject subject,
CallbackHandler handler, CallbackHandler handler,
@ -81,7 +82,7 @@ public abstract class CredentialManager {
* @throws CredentialNotFoundException if credential does not exist. * @throws CredentialNotFoundException if credential does not exist.
* *
* @throws LoginException if an error occurs. * @throws LoginException if an error occurs.
**/ */
protected abstract String getValue() protected abstract String getValue()
throws LoginException; throws LoginException;
@ -93,7 +94,7 @@ public abstract class CredentialManager {
* @return true if <code>setValue()</code> should be called * @return true if <code>setValue()</code> should be called
* *
* @throws LoginException if an error occurs. * @throws LoginException if an error occurs.
**/ */
protected abstract boolean shouldSetValue(String value) protected abstract boolean shouldSetValue(String value)
throws LoginException; throws LoginException;
@ -104,7 +105,7 @@ public abstract class CredentialManager {
* @param value the new value for the credential * @param value the new value for the credential
* *
* @throws LoginException if an error occurs. * @throws LoginException if an error occurs.
**/ */
protected abstract void setValue(String value) protected abstract void setValue(String value)
throws LoginException; throws LoginException;
@ -113,7 +114,7 @@ public abstract class CredentialManager {
* <code>getModule().getCredentialName()</code>. * <code>getModule().getCredentialName()</code>.
* *
* @throws LoginException if an error occurs. * @throws LoginException if an error occurs.
**/ */
protected abstract void deleteValue() protected abstract void deleteValue()
throws LoginException; throws LoginException;
} }

View File

@ -22,10 +22,10 @@ package com.arsdigita.kernel.security;
* Thrown when a credential is not found. * Thrown when a credential is not found.
* *
* @author Sameer Ajmani * @author Sameer Ajmani
**/ * @version $Id: CredentialNotFoundException.java 287 2005-02-22 00:29:02Z sskracic $
*/
public class CredentialNotFoundException extends CredentialException { public class CredentialNotFoundException extends CredentialException {
public static final String versionId = "$Id: CredentialNotFoundException.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
public CredentialNotFoundException() { public CredentialNotFoundException() {
super(); super();
} }

View File

@ -22,10 +22,10 @@ package com.arsdigita.kernel.security;
* Thrown when a credential is not yet valid. * Thrown when a credential is not yet valid.
* *
* @author Sameer Ajmani * @author Sameer Ajmani
**/ * @version $Id: CredentialNotYetValidException.java 287 2005-02-22 00:29:02Z sskracic $
*/
public class CredentialNotYetValidException extends CredentialException { public class CredentialNotYetValidException extends CredentialException {
public static final String versionId = "$Id: CredentialNotYetValidException.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
public CredentialNotYetValidException() { public CredentialNotYetValidException() {
super(); super();
} }

View File

@ -22,10 +22,10 @@ package com.arsdigita.kernel.security;
* Thrown when there is an error parsing a credential. * Thrown when there is an error parsing a credential.
* *
* @author Sameer Ajmani * @author Sameer Ajmani
**/ * @version $Id: CredentialParsingException.java 287 2005-02-22 00:29:02Z sskracic $
*/
public class CredentialParsingException extends CredentialException { public class CredentialParsingException extends CredentialException {
public static final String versionId = "$Id: CredentialParsingException.java 287 2005-02-22 00:29:02Z sskracic $ by $Author: sskracic $, $DateTime: 2004/08/16 18:10:38 $";
public CredentialParsingException() { public CredentialParsingException() {
super(); super();
} }

View File

@ -26,10 +26,10 @@ import javax.servlet.http.HttpServletRequest;
* *
* @author Sameer Ajmani * @author Sameer Ajmani
* @see SecurityHelper * @see SecurityHelper
**/ * @version $Id: DefaultSecurityHelper.java 709 2005-08-17 10:03:23Z apevec $
*/
public class DefaultSecurityHelper implements SecurityHelper { public class DefaultSecurityHelper implements SecurityHelper {
public static final String versionId = "$Id: DefaultSecurityHelper.java 709 2005-08-17 10:03:23Z apevec $ by $Author: apevec $, $DateTime: 2004/08/16 18:10:38 $";
/** /**
* Determines whether the request is secure by calling * Determines whether the request is secure by calling
* <code>req.isSecure()</code>. * <code>req.isSecure()</code>.