public GSSCredential getDelegCred() throws GSSException { if (mechCtxt == null) throw new GSSExceptionImpl(GSSException.NO_CONTEXT, "No mechanism context yet!"); GSSCredentialSpi delCredElement = mechCtxt.getDelegCred(); return (delCredElement == null ? null : new GSSCredentialImpl(gssManager, delCredElement)); }