Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
        }
    }
}