Example usage for java.security PrivilegedActionException printStackTrace

List of usage examples for java.security PrivilegedActionException printStackTrace

Introduction

In this page you can find the example usage for java.security PrivilegedActionException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:com.redhat.tools.kerberos.SunJaasKerberosTicketValidator.java

public String validateTicket(byte[] token) {
    String username = null;/*from  w  ww. j  a  v a  2s .  c  o m*/
    try {
        username = Subject.doAs(this.serviceSubject, new KerberosValidateAction(token));
    } catch (PrivilegedActionException e) {
        e.printStackTrace();
    }
    return username;
}