Class Login


public class Login extends Object
A Login into an account.

A login is bound to a Session. However, a Session can handle multiple logins in parallel.

To create a login, you need to specify the location URI of the Account, and need to provide the KeyPair the account was created with. If the account's location URL is unknown, the account can be re-registered with the AccountBuilder, using AccountBuilder.onlyExisting() to make sure that no new account will be created. If the key pair was lost though, there is no automatic way to regain access to your account, and you have to contact your CA's support hotline for assistance.

Note that Login objects are intentionally not serializable, as they contain a keypair and volatile data. On distributed systems, you can create a Login to the same account for every service instance.