public class ConnectionCredentials extends Object
This object is used to set the authentication mechanism on Stardog HTTP connections. Currently username/password and krb5 are supported.
Modifier and Type | Field and Description |
---|---|
static String |
GSS_KRB5_MECH_OID |
static String |
GSS_SPNEGO_MECH_OID |
Constructor and Description |
---|
ConnectionCredentials(org.apache.http.auth.KerberosCredentials theCredentials) |
ConnectionCredentials(String theUsername,
String thePassword) |
Modifier and Type | Method and Description |
---|---|
static ConnectionCredentials |
createKrb5Credential(File theKeytab,
boolean theDebug) |
static org.apache.http.auth.KerberosCredentials |
gerKrb5Cred(GSSManager theGSSManager,
boolean theDebug) |
org.apache.http.auth.Credentials |
getHttpCredentials() |
static ConnectionCredentials |
getKrb5Credential() |
static ConnectionCredentials |
getKrb5Credential(Boolean theDebug) |
static ConnectionCredentials |
getKrb5Credential(Subject theSubject) |
char[] |
getPassword() |
String |
getSubject() |
static ConnectionCredentials |
getUsernamePasswordCredential(String theUsername,
String thePassword) |
public static final String GSS_KRB5_MECH_OID
public static final String GSS_SPNEGO_MECH_OID
public ConnectionCredentials(org.apache.http.auth.KerberosCredentials theCredentials)
public org.apache.http.auth.Credentials getHttpCredentials()
public char[] getPassword()
public static ConnectionCredentials getKrb5Credential(Boolean theDebug)
public String getSubject()
public static ConnectionCredentials getKrb5Credential()
public static ConnectionCredentials getKrb5Credential(Subject theSubject)
public static ConnectionCredentials createKrb5Credential(File theKeytab, boolean theDebug)
public static ConnectionCredentials getUsernamePasswordCredential(String theUsername, String thePassword)
public static org.apache.http.auth.KerberosCredentials gerKrb5Cred(GSSManager theGSSManager, boolean theDebug)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.