Interface CredentialService
- All Known Implementing Classes:
InMemoryContextCredentialService
public interface CredentialService
Used to retrieve credentials.
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetCredential(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 schemeclientCallContext- the client call context, which may benull.- Returns:
- the credential or
nullif the credential could not be retrieved
-