Package org.apache.subversion.javahl
Class SVNUtil.Credential
java.lang.Object
org.apache.subversion.javahl.SVNUtil.Credential
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SVNUtil
public static class SVNUtil.Credential extends Object implements Serializable
Generic credential description. Provides default accessors for
concrete implementations.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SVNUtil.Credential.Kind
Describes the kind of the credential. -
Method Summary
Modifier and Type Method Description String
getClientCertPassphrase()
SVNUtil.Credential.Kind
getKind()
String
getPassword()
String
getRealm()
String
getSecureStore()
AuthnCallback.SSLServerCertFailures
getServerCertFailures()
AuthnCallback.SSLServerCertInfo
getServerCertInfo()
String
getUsername()
-
Method Details
-
getKind
- Returns:
- the kind of the credential.
-
getRealm
- Returns:
- the realm that the credential is valid for.
-
getSecureStore
- Returns:
- the type of the secure store used for the secret
parts of this credential; may be
null
if the credential does not contain any secrets bits. - Throws:
SVNUtil.CredentialTypeMismatch
-
getUsername
- Returns:
- the username associated with the credential, or
null
, if there is no username in the concrete credential type. - Throws:
SVNUtil.CredentialTypeMismatch
-
getPassword
- Returns:
- the password associated with the credential, or
null
, if there is no password in the concrete credential type. - Throws:
SVNUtil.CredentialTypeMismatch
-
getServerCertInfo
- Returns:
- the server certificate info associated with the
credential, or
null
, if there is no server certificate in the concrete credential type. - Throws:
SVNUtil.CredentialTypeMismatch
-
getServerCertFailures
public AuthnCallback.SSLServerCertFailures getServerCertFailures() throws SVNUtil.CredentialTypeMismatch- Returns:
- the accepted server certificate failures associated
with the credential, or
null
, if there is no server certificate in the concrete credential type. - Throws:
SVNUtil.CredentialTypeMismatch
-
getClientCertPassphrase
- Returns:
- the client certificate passphrase associated with
the credential, or
null
, if there is no client certificate in the concrete credential type. - Throws:
SVNUtil.CredentialTypeMismatch
-