Package com.salas.bb.utils.net.auth

Examples of com.salas.bb.utils.net.auth.IPasswordsRepository.forget()


    {
        IPasswordsRepository repository = initModernDatabase();

        repository.record(SAMPLE_CONTEXT_A, SAMPLE_AUTH_INFO);
        repository.record(SAMPLE_CONTEXT_B, SAMPLE_AUTH_INFO);
        repository.forget(SAMPLE_CONTEXT_A);

        PasswordAuthentication auth = repository.getAuthInformation(SAMPLE_CONTEXT_A);
        assertNull("Database should forget about the context.", auth);

        auth = repository.getAuthInformation(SAMPLE_CONTEXT_B);
View Full Code Here

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.