Interface ASCredentialIdentity

  • All Known Implementing Classes:
    ASPasskeyCredentialIdentity, ASPasswordCredentialIdentity

    public interface ASCredentialIdentity
    [@protocol] ASCredentialIdentity An ASCredentialIdentity is used to describe an identity that can use a service upon successful authentication. Use this class to save entries into ASCredentialIdentityStore. API-Since: 17.0
    • Method Detail

      • rank

        long rank()
        Get or set the rank of the credential identity object. The system may utilize the rank to decide which credential identity precedes the other if two identities have the same service identifier. A credential identity with a larger rank value precedes one with a smaller value if both credential identities have the same service identifier. The default value of this property is 0.
      • recordIdentifier

        @Nullable
        @Nullable java.lang.String recordIdentifier()
        Get the record identifier. You can utilize the record identifier to uniquely identify the credential identity in your local database.
      • setRank

        void setRank​(long value)
        Get or set the rank of the credential identity object. The system may utilize the rank to decide which credential identity precedes the other if two identities have the same service identifier. A credential identity with a larger rank value precedes one with a smaller value if both credential identities have the same service identifier. The default value of this property is 0.
      • user

        @NotNull
        @NotNull java.lang.String user()
        Get the user.