Package com.complexible.stardog.api
Class ConnectionCredentials
java.lang.Object
com.complexible.stardog.api.ConnectionCredentials
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 -
Constructor Summary
ConstructorsConstructorDescriptionConnectionCredentials(String theUsername, String thePassword) ConnectionCredentials(org.apache.hc.client5.http.auth.KerberosCredentials theCredentials) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionCredentialscreateKrb5Credential(File theKeytab, boolean theDebug) static ConnectionCredentialscreateKrb5Credential(File theKeytab, String thePrincipalName, boolean theDebug) static org.apache.hc.client5.http.auth.KerberosCredentialsgerKrb5Cred(GSSManager theGSSManager, boolean theDebug) org.apache.hc.client5.http.auth.Credentialsstatic ConnectionCredentialsstatic ConnectionCredentialsgetKrb5Credential(Boolean theDebug) static ConnectionCredentialsgetKrb5Credential(Subject theSubject) char[]static ConnectionCredentialsgetUsernamePasswordCredential(String theUsername, String thePassword)
-
Field Details
-
GSS_KRB5_MECH_OID
- See Also:
-
GSS_SPNEGO_MECH_OID
- See Also:
-
-
Constructor Details
-
ConnectionCredentials
public ConnectionCredentials(org.apache.hc.client5.http.auth.KerberosCredentials theCredentials) -
ConnectionCredentials
-
-
Method Details
-
getHttpCredentials
public org.apache.hc.client5.http.auth.Credentials getHttpCredentials() -
getPassword
public char[] getPassword() -
getKrb5Credential
-
getSubject
-
getKrb5Credential
-
getKrb5Credential
-
createKrb5Credential
-
createKrb5Credential
public static ConnectionCredentials createKrb5Credential(File theKeytab, @Nullable String thePrincipalName, boolean theDebug) -
getUsernamePasswordCredential
public static ConnectionCredentials getUsernamePasswordCredential(String theUsername, String thePassword) -
gerKrb5Cred
public static org.apache.hc.client5.http.auth.KerberosCredentials gerKrb5Cred(GSSManager theGSSManager, boolean theDebug)
-