Package org.jasig.cas.adaptors.x509.authentication.handler.support

Source Code of org.jasig.cas.adaptors.x509.authentication.handler.support.DenyRevocationPolicy

/*
* Copyright 2007 The JA-SIG Collaborative. All rights reserved. See license
* distributed with this file and available online at
* http://www.uportal.org/license.html
*/
package org.jasig.cas.adaptors.x509.authentication.handler.support;

import java.security.GeneralSecurityException;


/**
* Implements a deny policy by throwing an exception.
*
* @author Marvin S. Addison
* @version $Revision: 22985 $
* @since 3.4.6
*
*/
public final class DenyRevocationPolicy implements RevocationPolicy<Void> {

    /**
     * Policy application throws GeneralSecurityException to stop execution of
     * whatever process invoked application of this policy.
     *
     * @param nothing SHOULD be null; ignored in all cases.
     *
     * @throws GeneralSecurityException Thrown in all cases.
     *
     * @see org.jasig.cas.adaptors.x509.authentication.handler.support.RevocationPolicy#apply(java.lang.Object)
     */
    public void apply(final Void nothing) throws GeneralSecurityException {
        throw new GeneralSecurityException("Aborting since DenyRevocationPolicy is in effect.");
    }

}
TOP

Related Classes of org.jasig.cas.adaptors.x509.authentication.handler.support.DenyRevocationPolicy

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.