Interface CredentialService

All Known Implementing Classes:
InMemoryContextCredentialService

public interface CredentialService
Used to retrieve credentials.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    getCredential(String securitySchemeName, @Nullable ClientCallContext clientCallContext)
    Retrieves a credential (e.g., token) for a security scheme.
  • Method Details

    • getCredential

      @Nullable String getCredential(String securitySchemeName, @Nullable ClientCallContext clientCallContext)
      Retrieves a credential (e.g., token) for a security scheme.
      Parameters:
      securitySchemeName - the name of the security scheme
      clientCallContext - the client call context, which may be null.
      Returns:
      the credential or null if the credential could not be retrieved