> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# createCredential

<div className="kinetica-javadoc">
  <ul className="member-list">
    <li>
      <div className="section detail" id="createCredential(com.gpudb.protocol.CreateCredentialRequest)">
        <h3>createCredential</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/CreateCredentialResponse" title="class in com.gpudb.protocol">CreateCredentialResponse</a></span> <span className="element-name">createCredential</span><wbr /><span className="parameters">(<a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest" title="class in com.gpudb.protocol">CreateCredentialRequest</a> request)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">Create a new <a href="/content/concepts/credentials/" target="_top">credential</a>.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>request</code> - <a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest" title="class in com.gpudb.protocol"><code>Request</code></a> object containing the parameters for the operation.</div>
          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/CreateCredentialResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>

    <li>
      <div className="section detail" id="createCredential(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Map)">
        <h3>createCredential</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/CreateCredentialResponse" title="class in com.gpudb.protocol">CreateCredentialResponse</a></span> <span className="element-name">createCredential</span><wbr /><span className="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> credentialName, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> type, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> identity, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> secret, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link">Map</a>\<<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>,<wbr /><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>> options)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">Create a new <a href="/content/concepts/credentials/" target="_top">credential</a>.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>credentialName</code> - Name of the credential to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match an existing credential name.</div>

          <div className="dd">
            <code>type</code> - Type of the credential to be created. Supported values:

            <ul>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#AWS_ACCESS_KEY"><code>AWS\_ACCESS\_KEY</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#AWS_IAM_ROLE"><code>AWS\_IAM\_ROLE</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#AZURE_AD"><code>AZURE\_AD</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#AZURE_OAUTH"><code>AZURE\_OAUTH</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#AZURE_SAS"><code>AZURE\_SAS</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#AZURE_STORAGE_KEY"><code>AZURE\_STORAGE\_KEY</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#CONFLUENT"><code>CONFLUENT</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#DOCKER"><code>DOCKER</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#GCS_SERVICE_ACCOUNT_ID"><code>GCS\_SERVICE\_ACCOUNT\_ID</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#GCS_SERVICE_ACCOUNT_KEYS"><code>GCS\_SERVICE\_ACCOUNT\_KEYS</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#HDFS"><code>HDFS</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#JDBC"><code>JDBC</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#KAFKA"><code>KAFKA</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#NVIDIA_API_KEY"><code>NVIDIA\_API\_KEY</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#OPENAI_API_KEY"><code>OPENAI\_API\_KEY</code></a> </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateCredentialRequest.Type#REST"><code>REST</code></a> </li>
            </ul>
          </div>

          <div className="dd"><code>identity</code> - User of the credential to be created.</div>
          <div className="dd"><code>secret</code> - Password of the credential to be created.</div>
          <div className="dd"><code>options</code> - Optional parameters. The default value is an empty <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link"><code>Map</code></a>.</div>
          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/CreateCredentialResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>
  </ul>
</div>
