/** * $RCSfile$ * $Revision$ * $Date$ * * Copyright (C) 2004 Jive Software. All rights reserved. * * This software is published under the terms of the GNU Public License (GPL), * a copy of which is included in this distribution. */ package org.jivesoftware.messenger.auth.spi; import org.jivesoftware.messenger.auth.AuthToken; import java.io.Serializable; /** * Database implementation of the AuthToken interface. * * @author Iain Shigeoka */ public final class AuthTokenImpl implements AuthToken, Serializable { private static final long serialVersionUID = 01L; private String username; /** * Constucts a new AuthTokenImpl with the specified username. * * @param username the username to create an authToken token with. */ public AuthTokenImpl(String username) { this.username = username; } // AuthToken Interface public String getUsername() { return username; } public boolean isAnonymous() { return username != null; } }