/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* This class is essentially a wrapper class for the gss_name_t
* structure of the native GSS library.
* @author Valerie Peng
* @since 1.6
*/
try {
} catch (GSSException ge) {
// Workaround known Heimdal issue and retry with KRB5
try {
} catch (GSSException ge2) {
// Should never happen
ge2.getMajorString());
}
} else {
ge.getMajorString());
}
}
if (supportedNTs != null) {
}
// Special handling the specified name type
" with mechanism default(null)");
return null; // Use mechanism specific default
}
}
return nameType;
}
private GSSNameElement() {
printableName = "<DEFAULT ACCEPTOR>";
}
if (pNativeName == 0) {
}
// Note: pNativeName is assumed to be a MN.
pName = pNativeName;
}
throws GSSException {
}
// Special handling the specified name type if
// necessary
// Need to add back the mech Oid portion (stripped
// off by GSSNameImpl class prior to calling this
// method) for "NT_EXPORT_NAME"
try {
} catch (IOException e) {
}
int pos = 0;
}
}
}
assert(printableName != null);
if (printableType == null) {
}
}
// Need to be public for GSSUtil.getSubject()
long mName = 0;
}
}
return SunNativeProvider.INSTANCE;
}
if (!(other instanceof GSSNameElement)) {
return false;
}
}
if (!(other instanceof GSSNameElement)) {
return false;
}
try {
} catch (GSSException ex) {
return false;
}
}
public int hashCode() {
}
// Need to strip off the mech Oid portion of the exported
// bytes since GSSNameImpl class will subsequently add it.
int pos = 0;
try {
} catch (IOException e) {
}
pos += mechOidLen;
byte[] mechPortion = new byte[mechPortionLen];
return mechPortion;
}
}
return printableName;
}
return printableType;
}
public boolean isAnonymousName() {
}
public void dispose() {
if (pName != 0) {
pName = 0;
}
}
dispose();
}
}