org.apache.subversion.javahl
Class SVNUtil.Credential

java.lang.Object
  extended by 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
static class SVNUtil.Credential.Kind
          Describes the kind of the credential.
 
Method Summary
 String getClientCertPassphrase()
           
 SVNUtil.Credential.Kind getKind()
           
 String getPassword()
           
 String getRealm()
           
 String getSecureStore()
           
 AuthnCallback.SSLServerCertFailures getServerCertFailures()
           
 AuthnCallback.SSLServerCertInfo getServerCertInfo()
           
 String getUsername()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getKind

public SVNUtil.Credential.Kind getKind()
Returns:
the kind of the credential.

getRealm

public String getRealm()
Returns:
the realm that the credential is valid for.

getSecureStore

public String getSecureStore()
                      throws SVNUtil.CredentialTypeMismatch
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

public String getUsername()
                   throws SVNUtil.CredentialTypeMismatch
Returns:
the username associated with the credential, or null, if there is no username in the concrete credential type.
Throws:
SVNUtil.CredentialTypeMismatch

getPassword

public String getPassword()
                   throws SVNUtil.CredentialTypeMismatch
Returns:
the password associated with the credential, or null, if there is no password in the concrete credential type.
Throws:
SVNUtil.CredentialTypeMismatch

getServerCertInfo

public AuthnCallback.SSLServerCertInfo getServerCertInfo()
                                                  throws SVNUtil.CredentialTypeMismatch
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

public String getClientCertPassphrase()
                               throws SVNUtil.CredentialTypeMismatch
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