VCardSecurity

Inheritance: java.lang.Object

public final class VCardSecurity

Represents a vCard security properties

Constructors

Constructor Description
VCardSecurity() Initializes a new instance of the VCardSecurity class

Methods

Method Description
getKey() Gets or sets a public key(or authentication certificate)
setKey(String value) Gets or sets a public key(or authentication certificate)
getAccessClass() Gets or sets an access class
setAccessClass(String value) Gets or sets an access class
getEncoding() Gets or sets a ContentTransferEncoding
setEncoding(int value) Gets or sets a ContentTransferEncoding
saveToPEM(String path) Saves base64 key to PEM format.
saveToPEM(OutputStream stream) Saves base64 key in PEM format to the stream.

VCardSecurity()

public VCardSecurity()

Initializes a new instance of the VCardSecurity class

getKey()

public final String getKey()

Gets or sets a public key(or authentication certificate)

Returns: java.lang.String

setKey(String value)

public final void setKey(String value)

Gets or sets a public key(or authentication certificate)

Parameters:

Parameter Type Description
value java.lang.String

getAccessClass()

public final String getAccessClass()

Gets or sets an access class

Returns: java.lang.String

setAccessClass(String value)

public final void setAccessClass(String value)

Gets or sets an access class

Parameters:

Parameter Type Description
value java.lang.String

getEncoding()

public final int getEncoding()

Gets or sets a ContentTransferEncoding

Returns: int

setEncoding(int value)

public final void setEncoding(int value)

Gets or sets a ContentTransferEncoding

Parameters:

Parameter Type Description
value int

saveToPEM(String path)

public final void saveToPEM(String path)

Saves base64 key to PEM format.

Parameters:

Parameter Type Description
path java.lang.String Path to file.

saveToPEM(OutputStream stream)

public final void saveToPEM(OutputStream stream)

Saves base64 key in PEM format to the stream.

Parameters:

Parameter Type Description
stream java.io.OutputStream Stream to save.