public final class PKCS12Attribute extends Object implements KeyStore.Entry.Attribute
| Constructor and Description |
|---|
PKCS12Attribute(byte[] encoded)
构建从ASN一12属性。1 DER编码。
|
PKCS12Attribute(String name, String value)
构建了从其名称和值的12属性。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
比较这
PKCS12Attribute和平等的指定对象。
|
byte[] |
getEncoded()
返回属性的ASN.1 DER编码1。
|
String |
getName()
返回属性的ASN。1对象标识符的列表表示点分隔的整数。
|
String |
getValue()
返回属性的ASN.1 DER编码的字符串值为1。
|
int |
hashCode()
返回此
PKCS12Attribute hashCode。
|
String |
toString()
返回该
PKCS12Attribute字符串表示形式。
|
public PKCS12Attribute(String name, String value)
一个字符串值将DER编码为ASN。1 utf8string和二进制值将DER编码为ASN。1字节的字符串。
Arrays.toString(java.lang.Object[])。
name -属性的标识符
value -属性的值
NullPointerException -如果
name或
value是
null
IllegalArgumentException -如果
name或
value格式不正确
public PKCS12Attribute(byte[] encoded)
属性:=序列{型AttributeType,值设置属性值}AttributeType::=对象标识符属性值::=任何定义的类型 ASN。
encoded -属性的ASN.1 DER编码1。这是为了防止后续修改克隆。
null
encoded
NullPointerException
IllegalArgumentException -如果
encoded格式不正确
public String getName()
getName 接口
KeyStore.Entry.Attribute
public String getValue()
String格式返回多值属性表示为一个逗号分隔的值列表,在方括号内。看到
Arrays.toString(java.lang.Object[])。
getValue 接口
KeyStore.Entry.Attribute
public byte[] getEncoded()
public boolean equals(Object obj)
PKCS12Attribute和平等的指定对象。
equals 方法重写,继承类
Object
obj -比较对象
obj是
PKCS12Attribute和DER编码是平等的。
Object.hashCode(),
HashMap
public int hashCode()
PKCS12Attribute 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.