public class Oid extends Object
OID是分层次的全局标识符在解释GSS-API框架用来识别机制和名称格式。
的结构和编码的OID是isoiec-8824和isoiec-8825定义。例如Kerberos V5机制OID表示“1.2.840.113554.1.2.2”
类包含公共静态OID对象表示定义在GSS-API标准名称类型的gssname名称。
Constructor and Description |
---|
Oid(byte[] data)
创建从ASN.1 OID 1 DER编码的对象。
|
Oid(InputStream derOid)
创建从ASN.1 OID 1 DER编码的对象。
|
Oid(String strOid)
构建了从整数组成的字符串表示一个OID对象。
|
public Oid(String strOid) throws GSSException
strOid
-点分隔的字符串表示的OID。例如,“1.2.840.113554.1.2.2”。
GSSException
可以当字符串的格式不正确投掷
public Oid(InputStream derOid) throws GSSException
derOid
含DER编码的OID流
GSSException
可能当DER编码不遵循规定的格式。
public Oid(byte[] data) throws GSSException
data
字节数组包含DER编码的OID
GSSException
可能当DER编码不遵循规定的格式。
public String toString()
public boolean equals(Object other)
equals
方法重写,继承类
Object
other
的OID对象,要比较这一
true
如果两OID对象表示相同的值,否则
false
。
Object.hashCode()
,
HashMap
public byte[] getDER() throws GSSException
GSSException
可能当老不能编码
public boolean containedIn(Oid[] oids)
oids
- Oid搜索数组
public int hashCode()
hashCode
方法重写,继承类
Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.