All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.org.jafer.interfaces.Authenticate Maven / Gradle / Ivy

package org.jafer.interfaces;

/**
 * 

Title:

*

Description:

*

Copyright: Copyright (c) 2002

*

Company:

* @author unascribed * @version 1.0 */ import org.jafer.util.CompressedXMLDecoder; import java.net.URL; import java.io.*; public abstract class Authenticate implements Serializable { abstract public boolean authenticate(String username, String groupname, String password, String clientIp); public static Authenticate load(URL config) { try { CompressedXMLDecoder decoder = new CompressedXMLDecoder(config.openStream()); return (Authenticate)decoder.readObject(); } catch (Exception ex) { ex.printStackTrace(); return null; } } private void writeObject(ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); } private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException { ois.defaultReadObject(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy