Example usage for javax.security.auth.login LoginContext toString

List of usage examples for javax.security.auth.login LoginContext toString

Introduction

In this page you can find the example usage for javax.security.auth.login LoginContext toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:org.apache.hadoop.registry.RegistryTestHelper.java

/**
 * log out from a context if non-null ... exceptions are caught and logged
 * @param login login context/*from  ww w  .  jav  a2 s.  co  m*/
 * @return null, always
 */
public static LoginContext logout(LoginContext login) {
    try {
        if (login != null) {
            LOG.debug("Logging out login context {}", login.toString());
            login.logout();
        }
    } catch (LoginException e) {
        LOG.warn("Exception logging out: {}", e, e);
    }
    return null;
}