Spring / Spring CredHub Interview questions
Describe CredHubCredentialOperations?
CredHubCredentialOperations, obtained by calling credHubOperations.credentials(), is the sub-interface focused specifically on credential CRUD — write, generate, regenerate, find, and delete — as opposed to permissions or interpolation.
It's the interface most application code actually needs when all it wants is to manage credential values: for example, a service that fetches a database password only needs credentialOperations.getByName(name, PasswordCredential.class), not the broader permission or interpolation APIs.
Separating it from permission and interpolation operations keeps each interface focused, so a class that only reads and writes credentials doesn't have to depend on unrelated ACL or VCAP_SERVICES functionality.
More Related questions...