Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ICredential

interface ICredential
Extends IStandard Credentials are used to authorize security principals to perform actions Each security principal has a security context associated with it. The security context contains the privileges enabled for the principal along with other security relevant data. A credential is a reference to a security context, which is used to authorize the principal to perform an action.

Methods

checkPrivilege()

bool checkPrivilege(string privilege)
Determine whether a privilege is currently enabled for this credential

Parameters

privilege
string — Required The privilege name to check

Returns

bool True if the privilege is enabled, otherwise false
Last modified on October 29, 2026