Class Credentials

java.lang.Object
net.messagevortex.transport.Credentials

public class Credentials extends Object
  • Constructor Details

  • Method Details

    • getUsername

      public String getUsername()
    • setUsername

      public String setUsername(String username)

      Sets the username to the specified String.

      Parameters:
      username - the username to be set
      Returns:
      the previously set username
    • getIdentityCert

      public X509Certificate getIdentityCert()
    • setIdentityCert

      public X509Certificate setIdentityCert(X509Certificate identityCert)

      Sets the certificate to be used with this identity.

      Parameters:
      identityCert - the certificate to be set
      Returns:
      the previously set certificate
    • getTrustStore

      public KeyStore getTrustStore()
    • setClientCert

      public KeyStore setClientCert(KeyStore trustStore)

      Sets the trust store to be used when working with peer certificates.

      Parameters:
      trustStore - the truststore to be set
      Returns:
      the previously set trust store
    • getPassword

      public String getPassword()
    • setPassword

      public String setPassword(String password)

      Sets the password to be used.

      Parameters:
      password - the password to be set
      Returns:
      the previously set password
    • getRealm

      public String getRealm()

      Gets the realm to be used.

      Returns:
      the ccurrently set realm for this user
    • setRealm

      public String setRealm(String realm)

      Sets the realm for this user.

      Parameters:
      realm - name of the realm to be set. Set to 'null' to unset.
      Returns:
      the previously set realm
    • setSecurityRequirement

      public SecurityRequirement setSecurityRequirement(SecurityRequirement req)

      Sets the security requirement assiciated with these credentials.

      Parameters:
      req - the requirements to be associated
      Returns:
      the previously set requirements
    • getSecurityRequirement

      public SecurityRequirement getSecurityRequirement()