public class EcIdentity extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
displayName
Display name of this identity
|
EcPpk |
ppk
Private Key of this identity
|
String |
source
String identifying where this identity came from
|
| Constructor and Description |
|---|
EcIdentity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static EcIdentity |
fromCredential(EbacCredential credential,
String secret,
String source)
Helper function to decrypt a credential (storable version of an identity)
into an identity)
|
EcContact |
toContact()
Converts an identity to a contact.
|
EbacCredential |
toCredential(String secret)
Helper function to encrypt an identity into a credential (storable
version of an identity)
|
public EcPpk ppk
public String displayName
public String source
public static EcIdentity fromCredential(EbacCredential credential, String secret, String source)
{EbacCredential} - credential
Credential to decrypt.{String} - secret
AES secret used to decrypt the credential.{String} - source
Source of the credential, used to track where a credential
came from.public EbacCredential toCredential(String secret)
{String} - secret
AES secret used to encrypt the credential.public EcContact toContact()
Copyright © 2018 Eduworks Corporation. All rights reserved.