Class CertificateCredential
- java.lang.Object
-
- nl.esciencecenter.xenon.credentials.PasswordCredential
-
- nl.esciencecenter.xenon.credentials.CertificateCredential
-
- All Implemented Interfaces:
Credential
,UserCredential
public class CertificateCredential extends PasswordCredential
A container for security Information based upon certificates.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
certfile
This member variables holds the URI of the file containing the certificate.
-
Constructor Summary
Constructors Constructor Description CertificateCredential(java.lang.String username, java.lang.String certfile, char[] passphrase)
Constructs aCertificateCredential
out of a username, a certificate file containing a private key, and an optional passphrase.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getCertificateFile()
Returns the certificate file.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class nl.esciencecenter.xenon.credentials.PasswordCredential
getPassword, getUsername
-
-
-
-
Constructor Detail
-
CertificateCredential
public CertificateCredential(java.lang.String username, java.lang.String certfile, char[] passphrase)
Constructs aCertificateCredential
out of a username, a certificate file containing a private key, and an optional passphrase.- Parameters:
username
- the username for this certificatecertfile
- the certification filepassphrase
- the optional passphrase needed to decrypt for this certificate
-
-
Method Detail
-
getCertificateFile
public java.lang.String getCertificateFile()
Returns the certificate file.- Returns:
- the certificate file.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classPasswordCredential
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classPasswordCredential
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPasswordCredential
-
-