/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ietf.jgss;
public interface GSSName {
static final Oid NT_ANONYMOUS = new Oid(new int[] { 1, 3, 6, 1, 5, 6, 3 });
static final Oid NT_EXPORT_NAME = new Oid(new int[] { 1, 3, 6, 1, 5, 6, 4 });
static final Oid NT_HOSTBASED_SERVICE = new Oid(new int[] { 1, 3, 6, 1, 5,
6, 2 });
static final Oid NT_MACHINE_UID_NAME = new Oid(new int[] { 1, 2, 840,
113554, 1, 2, 1, 2 });
static final Oid NT_STRING_UID_NAME = new Oid(new int[] { 1, 2, 840,
113554, 1, 2, 1, 3 });
static final Oid NT_USER_NAME = new Oid(new int[] { 1, 2, 840, 113554, 1,
2, 1, 1 });
GSSName canonicalize(Oid mech) throws GSSException;
boolean equals(GSSName another) throws GSSException;
@Override
boolean equals(Object another);
byte[] export() throws GSSException;
Oid getStringNameType() throws GSSException;
@Override
int hashCode();
boolean isAnonymous();
boolean isMN();
@Override
String toString();
}