Liking cljdoc? Tell your friends :D

jdk.security.PKCS12Attribute

An attribute associated with a PKCS12 keystore entry. The attribute name is an ASN.1 Object Identifier and the attribute value is a set of ASN.1 types.

An attribute associated with a PKCS12 keystore entry.
The attribute name is an ASN.1 Object Identifier and the attribute
value is a set of ASN.1 types.
raw docstring

->pkcs-12-attributeclj

(->pkcs-12-attribute encoded)
(->pkcs-12-attribute name value)

Constructor.

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.

name - the attribute's identifier - java.lang.String value - the attribute's value - java.lang.String

throws: java.lang.NullPointerException - if name or value is null

Constructor.

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.

name - the attribute's identifier - `java.lang.String`
value - the attribute's value - `java.lang.String`

throws: java.lang.NullPointerException - if name or value is null
raw docstring

equalsclj

(equals this obj)

Compares this PKCS12Attribute and a specified object for equality.

obj - the comparison object - java.lang.Object

returns: true if obj is a PKCS12Attribute and their DER encodings are equal. - boolean

Compares this PKCS12Attribute and a specified object for
 equality.

obj - the comparison object - `java.lang.Object`

returns: true if obj is a PKCS12Attribute and
 their DER encodings are equal. - `boolean`
raw docstring

get-encodedclj

(get-encoded this)

Returns the attribute's ASN.1 DER encoding.

returns: a clone of the attribute's DER encoding - byte[]

Returns the attribute's ASN.1 DER encoding.

returns: a clone of the attribute's DER encoding - `byte[]`
raw docstring

get-nameclj

(get-name this)

Returns the attribute's ASN.1 Object Identifier represented as a list of dot-separated integers.

returns: the attribute's identifier - java.lang.String

Returns the attribute's ASN.1 Object Identifier represented as a
 list of dot-separated integers.

returns: the attribute's identifier - `java.lang.String`
raw docstring

get-valueclj

(get-value this)

Returns the attribute's ASN.1 DER-encoded value as a string. An ASN.1 DER-encoded value is returned in one of the following String formats:

the DER encoding of a basic ASN.1 type that has a natural string representation is returned as the string itself. Such types are currently limited to BOOLEAN, INTEGER, OBJECT IDENTIFIER, UTCTime, GeneralizedTime and the following six ASN.1 string types: UTF8String, PrintableString, T61String, IA5String, BMPString and GeneralString. the DER encoding of any other ASN.1 type is not decoded but returned as a binary 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[]).

returns: the attribute value's string encoding - java.lang.String

Returns the attribute's ASN.1 DER-encoded value as a string.
 An ASN.1 DER-encoded value is returned in one of the following
 String formats:

  the DER encoding of a basic ASN.1 type that has a natural
      string representation is returned as the string itself.
      Such types are currently limited to BOOLEAN, INTEGER,
      OBJECT IDENTIFIER, UTCTime, GeneralizedTime and the
      following six ASN.1 string types: UTF8String,
      PrintableString, T61String, IA5String, BMPString and
      GeneralString.
  the DER encoding of any other ASN.1 type is not decoded but
      returned as a binary 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[]).

returns: the attribute value's string encoding - `java.lang.String`
raw docstring

hash-codeclj

(hash-code this)

Returns the hashcode for this PKCS12Attribute. The hash code is computed from its DER encoding.

returns: the hash code - int

Returns the hashcode for this PKCS12Attribute.
 The hash code is computed from its DER encoding.

returns: the hash code - `int`
raw docstring

to-stringclj

(to-string this)

Returns a string representation of this PKCS12Attribute.

returns: a name/value pair separated by an 'equals' symbol - java.lang.String

Returns a string representation of this PKCS12Attribute.

returns: a name/value pair separated by an 'equals' symbol - `java.lang.String`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close