Class 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 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
    • Constructor Detail

      • ConnectionCredentials

        public ConnectionCredentials​(org.apache.http.auth.KerberosCredentials theCredentials)
      • ConnectionCredentials

        public ConnectionCredentials​(java.lang.String theUsername,
                                     java.lang.String thePassword)
    • 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​(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)