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.StringcertfileThis 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 aCertificateCredentialout 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 booleanequals(java.lang.Object o)java.lang.StringgetCertificateFile()Returns the certificate file.inthashCode()java.lang.StringtoString()-
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 aCertificateCredentialout 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:
toStringin classPasswordCredential
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classPasswordCredential
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPasswordCredential
-
-