次の方法で共有


PKCS12Attribute Constructors

Definition

Overloads

PKCS12Attribute(Byte[])

Constructs a PKCS12 attribute from its ASN.

PKCS12Attribute(String, String)

Constructs a PKCS12 attribute from its name and value.

PKCS12Attribute(Byte[])

Constructs a PKCS12 attribute from its ASN.

[Android.Runtime.Register(".ctor", "([B)V", "", ApiSince=26)]
public PKCS12Attribute (byte[]? encoded);
[<Android.Runtime.Register(".ctor", "([B)V", "", ApiSince=26)>]
new Java.Security.PKCS12Attribute : byte[] -> Java.Security.PKCS12Attribute

Parameters

encoded
Byte[]

the attribute's ASN.1 DER encoding. It is cloned to prevent subsequent modificaion.

Attributes

Remarks

Constructs a PKCS12 attribute from its ASN.1 DER encoding. The DER encoding is specified by the following ASN.1 definition:

Attribute ::= SEQUENCE {
                type   AttributeType,
                values SET OF AttributeValue
            }
            AttributeType ::= OBJECT IDENTIFIER
            AttributeValue ::= ANY defined by type

Java documentation for java.security.PKCS12Attribute.PKCS12Attribute(byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PKCS12Attribute(String, String)

Constructs a PKCS12 attribute from its name and value.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=26)]
public PKCS12Attribute (string? name, string? value);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=26)>]
new Java.Security.PKCS12Attribute : string * string -> Java.Security.PKCS12Attribute

Parameters

name
String

the attribute's identifier

value
String

the attribute's value

Attributes

Remarks

Constructs a PKCS12 attribute from its name and value. The name is an ASN.1 Object Identifier represented as a list of dot-separated integers. A string value is represented as the string itself. A binary value is represented as a string of colon-separated pairs of hexadecimal digits. Multi-valued attributes are represented as a comma-separated list of values, enclosed in square brackets. See Arrays#toString(java.lang.Object[]).

A string value will be DER-encoded as an ASN.1 UTF8String and a binary value will be DER-encoded as an ASN.1 Octet String.

Java documentation for java.security.PKCS12Attribute.PKCS12Attribute(java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to