public void login(CredentialProvider credentialProvider) throws LoginFailedException, RemoteServerException {
  if (credentialProvider == null) {
    throw new NullPointerException("Credential Provider is null");
  }
  this.credentialProvider=credentialProvider;
  startTime=currentTimeMillis();
  playerProfile=new PlayerProfile(this);
  settings=new Settings(this);
  inventories=new Inventories(this);
  initialize();
}

public void login ( CredentialProvider credentialProvider ) throws LoginFailedException , RemoteServerException { if ( credentialProvider == null ) { throw new NullPointerException ( "Credential Provider is null" ) ; } this . credentialProvider = credentialProvider ; startTime = currentTimeMillis ( ) ; playerProfile = new PlayerProfile ( this ) ; settings = new Settings ( this ) ; inventories = new Inventories ( this ) ; initialize ( ) ; }
login user with the provided provider
