Class CredentialDTO.Builder

java.lang.Object
org.apache.gravitino.dto.credential.CredentialDTO.Builder
Enclosing class:
CredentialDTO

public static class CredentialDTO.Builder extends Object
Builder class for constructing CredentialDTO instances.
  • Method Details

    • withCredentialType

      public CredentialDTO.Builder withCredentialType(String credentialType)
      Sets the credential type.
      Parameters:
      credentialType - The specific credential type.
      Returns:
      The builder instance.
    • withExpireTimeInMs

      public CredentialDTO.Builder withExpireTimeInMs(long expireTimeInMs)
      Sets the credential expire time.
      Parameters:
      expireTimeInMs - The credential expire time.
      Returns:
      The builder instance.
    • withCredentialInfo

      public CredentialDTO.Builder withCredentialInfo(Map<String,String> credentialInfo)
      Sets the credential information.
      Parameters:
      credentialInfo - The specific credential information map.
      Returns:
      The builder instance.
    • build

      public CredentialDTO build()
      Returns:
      The constructed credential DTO.