01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.ietf.jgss;
19:
20: public interface GSSName {
21:
22: static final Oid NT_ANONYMOUS = new Oid(new int[] { 1, 3, 6, 1, 5,
23: 6, 3 });
24:
25: static final Oid NT_EXPORT_NAME = new Oid(new int[] { 1, 3, 6, 1,
26: 5, 6, 4 });
27:
28: static final Oid NT_HOSTBASED_SERVICE = new Oid(new int[] { 1, 3,
29: 6, 1, 5, 6, 2 });
30:
31: static final Oid NT_MACHINE_UID_NAME = new Oid(new int[] { 1, 2,
32: 840, 113554, 1, 2, 1, 2 });
33:
34: static final Oid NT_STRING_UID_NAME = new Oid(new int[] { 1, 2,
35: 840, 113554, 1, 2, 1, 3 });
36:
37: static final Oid NT_USER_NAME = new Oid(new int[] { 1, 2, 840,
38: 113554, 1, 2, 1, 1 });
39:
40: GSSName canonicalize(Oid mech) throws GSSException;
41:
42: boolean equals(GSSName another) throws GSSException;
43:
44: boolean equals(Object another);
45:
46: byte[] export() throws GSSException;
47:
48: Oid getStringNameType() throws GSSException;
49:
50: int hashCode();
51:
52: boolean isAnonymous();
53:
54: boolean isMN();
55:
56: String toString();
57: }
|