Java tutorial
//package com.java2s; //License from project: Open Source License import org.ietf.jgss.GSSContext; import org.ietf.jgss.GSSException; public class Main { public static String getSourcePrinciple(GSSContext context) { try { return context.getSrcName().toString(); } catch (GSSException e) { throw new RuntimeException(e); } } }