Package com.complexible.stardog.api
Class ConnectionCredentials
- java.lang.Object
-
- com.complexible.stardog.api.ConnectionCredentials
-
public class ConnectionCredentials extends java.lang.Object
This object is used to set the authentication mechanism on Stardog HTTP connections. Currently username/password and krb5 are supported.
- Since:
- 5.2.1
- Version:
- 5.2.1
- Author:
- John Bresnahan
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GSS_KRB5_MECH_OID
static java.lang.String
GSS_SPNEGO_MECH_OID
-
Constructor Summary
Constructors Constructor Description ConnectionCredentials(java.lang.String theUsername, java.lang.String thePassword)
ConnectionCredentials(org.apache.http.auth.KerberosCredentials theCredentials)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionCredentials
createKrb5Credential(java.io.File theKeytab, boolean theDebug)
static ConnectionCredentials
createKrb5Credential(java.io.File theKeytab, java.lang.String thePrincipalName, boolean theDebug)
static org.apache.http.auth.KerberosCredentials
gerKrb5Cred(org.ietf.jgss.GSSManager theGSSManager, boolean theDebug)
org.apache.http.auth.Credentials
getHttpCredentials()
static ConnectionCredentials
getKrb5Credential()
static ConnectionCredentials
getKrb5Credential(java.lang.Boolean theDebug)
static ConnectionCredentials
getKrb5Credential(javax.security.auth.Subject theSubject)
char[]
getPassword()
java.lang.String
getSubject()
static ConnectionCredentials
getUsernamePasswordCredential(java.lang.String theUsername, java.lang.String thePassword)
-
-
-
Field Detail
-
GSS_KRB5_MECH_OID
public static final java.lang.String GSS_KRB5_MECH_OID
- See Also:
- Constant Field Values
-
GSS_SPNEGO_MECH_OID
public static final java.lang.String GSS_SPNEGO_MECH_OID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHttpCredentials
public org.apache.http.auth.Credentials getHttpCredentials()
-
getPassword
public char[] getPassword()
-
getKrb5Credential
public static ConnectionCredentials getKrb5Credential(java.lang.Boolean theDebug)
-
getSubject
public java.lang.String getSubject()
-
getKrb5Credential
public static ConnectionCredentials getKrb5Credential()
-
getKrb5Credential
public static ConnectionCredentials getKrb5Credential(javax.security.auth.Subject theSubject)
-
createKrb5Credential
public static ConnectionCredentials createKrb5Credential(java.io.File theKeytab, boolean theDebug)
-
createKrb5Credential
public static ConnectionCredentials createKrb5Credential(java.io.File theKeytab, @Nullable java.lang.String thePrincipalName, boolean theDebug)
-
getUsernamePasswordCredential
public static ConnectionCredentials getUsernamePasswordCredential(java.lang.String theUsername, java.lang.String thePassword)
-
gerKrb5Cred
public static org.apache.http.auth.KerberosCredentials gerKrb5Cred(org.ietf.jgss.GSSManager theGSSManager, boolean theDebug)
-
-