GSSName importName(byte[] nameStr, Oid nameType) throws GSSException {
long maj_status = 0;
long[] min_status = {0};
gss_buffer_desc nameBuffer = new gss_buffer_desc();
if (nameStr == null) {
if (DEBUG_ERR == true)
System.out.println("nameStr == null, during createName");
throw new GSSExceptionImpl((int)maj_status, (int)min_status[0]);
}
/* copy byte[] to native gss_buffer_desc */
gsswrapper.setDescArray(nameBuffer, nameStr);
nameBuffer.setLength(nameStr.length);
/* Check supported nametypes. If it's not a supported one, or null,
throw exception */
if (nameType != null &&
!nameType.equals(GSSName.NT_HOSTBASED_SERVICE) &&