Package net.messagevortex.transport
Class Credentials
java.lang.Object
net.messagevortex.transport.Credentials
-
Constructor Summary
ConstructorsConstructorDescriptionCredentials(String username, String password) Credentials(String username, String password, String realm) Credentials(String username, String password, SecurityRequirement requirement) -
Method Summary
Modifier and TypeMethodDescriptiongetRealm()Gets the realm to be used.setClientCert(KeyStore trustStore) Sets the trust store to be used when working with peer certificates.setIdentityCert(X509Certificate identityCert) Sets the certificate to be used with this identity.setPassword(String password) Sets the password to be used.Sets the realm for this user.Sets the security requirement assiciated with these credentials.setUsername(String username) Sets the username to the specified String.
-
Constructor Details
-
Credentials
-
Credentials
-
Credentials
-
-
Method Details
-
getUsername
-
setUsername
Sets the username to the specified String.
- Parameters:
username- the username to be set- Returns:
- the previously set username
-
getIdentityCert
-
setIdentityCert
Sets the certificate to be used with this identity.
- Parameters:
identityCert- the certificate to be set- Returns:
- the previously set certificate
-
getTrustStore
-
setClientCert
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
-
setPassword
Sets the password to be used.
- Parameters:
password- the password to be set- Returns:
- the previously set password
-
getRealm
Gets the realm to be used.
- Returns:
- the ccurrently set realm for this user
-
setRealm
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
Sets the security requirement assiciated with these credentials.
- Parameters:
req- the requirements to be associated- Returns:
- the previously set requirements
-
getSecurityRequirement
-