org.apache.ignite.cache.store.cassandra.datasource

## Class PlainCredentials

- java.lang.Object
- - org.apache.ignite.cache.store.cassandra.datasource.PlainCredentials

- All Implemented Interfaces:
    Serializable, Credentials

      public class PlainCredentials
      extends Object
      implements Credentials

  Simple implementation of `Credentials` which just uses its constructor to hold user/password values.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PlainCredentials(String user, String pwd)` Creates credentials object.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getPassword()` Returns password
    `String` | `getUser()` Returns user name

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PlainCredentials

          public PlainCredentials(String user,
                                  String pwd)

      Creates credentials object.
      Parameters:
        `user` - User name.
        `pwd` - User password.

  - ### Method Detail

    - #### getUser

          public String getUser()

      Returns user name
      Specified by:
        `getUser` in interface `Credentials`
      Returns:
        user name

    - #### getPassword

          public String getPassword()

      Returns password
      Specified by:
        `getPassword` in interface `Credentials`
      Returns:
        password

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.11.0
Release Date | : September 11 2021