public enum CredentialType extends Enum<CredentialType>
This is the types of credentials allowed for the Authentication Process. It can be either an Invitation (Signature, with a shared secret). Or it can be a Passphrase, which together a System & Account Salt.
Regardless of the type, the information given will be used to decrypt the Asymmetric Key, which was generated and stored with the Account. The Private part of the Key is encrypted using the credentials, and the Public part of the Key is stored as is, so it can be used by others for encryption.
Enum Constant and Description |
---|
PASSPHRASE
If the Passphrase is chosen, then the information will be used together
with both an Account and a System specific Salt to create enough entropy
to generate a Symmetric key which can be used to unlock the Asymmetric
Key for the Account.
|
SESSION
For websites, where members have a session, this can be added to the
CWS for convenience - and also to prevent that a member must continuously
provide the login credentials.
|
SIGNATURE
If the Signature is chosen, it is because a Member has been invited to
create their own Account.
|
Modifier and Type | Method and Description |
---|---|
static CredentialType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CredentialType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CredentialType PASSPHRASE
public static final CredentialType SESSION
For websites, where members have a session, this can be added to the CWS for convenience - and also to prevent that a member must continuously provide the login credentials. It also helps preventing that websites have to store users credentials alongside a session. Sessions have a pre-defined maximum life-time, after which a Session is considered dead and attempts to use it after this point will lead to a user error.
If a session is used, then the credentials will hold the user session while the accountName is omitted.
public static final CredentialType SIGNATURE
public static CredentialType[] values()
for (CredentialType c : CredentialType.values()) System.out.println(c);
public static CredentialType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 JavaDog.io. All rights reserved.