Compartilhar via


KeyStore.SecretKeyEntry Constructors

Definition

Overloads

KeyStore.SecretKeyEntry(ISecretKey)

Constructs a SecretKeyEntry with a SecretKey.

KeyStore.SecretKeyEntry(ISecretKey, ICollection<KeyStore.IEntryAttribute>)

Constructs a SecretKeyEntry with a SecretKey and associated entry attributes.

KeyStore.SecretKeyEntry(ISecretKey)

Constructs a SecretKeyEntry with a SecretKey.

[Android.Runtime.Register(".ctor", "(Ljavax/crypto/SecretKey;)V", "")]
public SecretKeyEntry (Javax.Crypto.ISecretKey? secretKey);
[<Android.Runtime.Register(".ctor", "(Ljavax/crypto/SecretKey;)V", "")>]
new Java.Security.KeyStore.SecretKeyEntry : Javax.Crypto.ISecretKey -> Java.Security.KeyStore.SecretKeyEntry

Parameters

secretKey
ISecretKey

the SecretKey

Attributes

Exceptions

if secretKey is null.

Remarks

Constructs a SecretKeyEntry with a SecretKey.

Java documentation for java.security.KeyStore.SecretKeyEntry.KeyStore$SecretKeyEntry(javax.crypto.SecretKey).

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

KeyStore.SecretKeyEntry(ISecretKey, ICollection<KeyStore.IEntryAttribute>)

Constructs a SecretKeyEntry with a SecretKey and associated entry attributes.

[Android.Runtime.Register(".ctor", "(Ljavax/crypto/SecretKey;Ljava/util/Set;)V", "", ApiSince=26)]
public SecretKeyEntry (Javax.Crypto.ISecretKey? secretKey, System.Collections.Generic.ICollection<Java.Security.KeyStore.IEntryAttribute>? attributes);
[<Android.Runtime.Register(".ctor", "(Ljavax/crypto/SecretKey;Ljava/util/Set;)V", "", ApiSince=26)>]
new Java.Security.KeyStore.SecretKeyEntry : Javax.Crypto.ISecretKey * System.Collections.Generic.ICollection<Java.Security.KeyStore.IEntryAttribute> -> Java.Security.KeyStore.SecretKeyEntry

Parameters

secretKey
ISecretKey

the SecretKey

attributes
ICollection<KeyStore.IEntryAttribute>

the attributes

Attributes

Remarks

Constructs a SecretKeyEntry with a SecretKey and associated entry attributes.

The specified attributes is cloned before it is stored in the new SecretKeyEntry object.

Added in 1.8.

Java documentation for java.security.KeyStore.SecretKeyEntry.KeyStore$SecretKeyEntry(javax.crypto.SecretKey, java.util.Set<java.security.KeyStore.Entry.Attribute>).

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