Example usage for org.apache.hadoop.security UserGroupInformation.AuthenticationMethod equals

List of usage examples for org.apache.hadoop.security UserGroupInformation.AuthenticationMethod equals

Introduction

In this page you can find the example usage for org.apache.hadoop.security UserGroupInformation.AuthenticationMethod equals.

Prototype

@Override
public boolean equals(Object o) 

Source Link

Document

Compare the subjects to see if they are equal to each other.

Usage

From source file:org.apache.zeppelin.jdbc.JDBCInterpreter.java

License:Apache License

protected boolean isKerboseEnabled() {
    if (!isEmpty(getProperty("zeppelin.jdbc.auth.type"))) {
        UserGroupInformation.AuthenticationMethod authType = JDBCSecurityImpl.getAuthtype(properties);
        if (authType.equals(KERBEROS)) {
            return true;
        }/*from w  w w.  ja v a2 s .com*/
    }
    return false;
}