private static String getNameTypeStr(Oid nameTypeOid) { if (nameTypeOid == null) return "(NT is null)"; if (nameTypeOid.equals(NT_USER_NAME)) return "NT_USER_NAME"; if (nameTypeOid.equals(NT_HOSTBASED_SERVICE)) return "NT_HOSTBASED_SERVICE"; if (nameTypeOid.equals(NT_EXPORT_NAME)) return "NT_EXPORT_NAME"; if (nameTypeOid.equals(GSSUtil.NT_GSS_KRB5_PRINCIPAL)) return "NT_GSS_KRB5_PRINCIPAL"; else return "Unknown"; }
GSSNameImpl(GSSManagerImpl gssManager, Object appName, Oid appNameType, Oid mech) throws GSSException { if (oldHostbasedServiceName.equals(appNameType)) { appNameType = GSSName.NT_HOSTBASED_SERVICE; } if (appName == null) throw new GSSExceptionImpl(GSSException.BAD_NAME, "Cannot import null name"); if (mech == null) mech = ProviderList.DEFAULT_MECH_OID; if (NT_EXPORT_NAME.equals(appNameType)) { importName(gssManager, appName); } else { init(gssManager, appName, appNameType, mech); } }