password(withIdentifier:)
Provides a password by its identifier.
Declaration
func password(withIdentifier identifier: String) async throws(ManagedAppError) -> StringParameters
- identifier:
The identifier of the requested password. This function throws Invalididentifier if the value you supply isn’t currently in Identifiers.
Mentioned in
Return Value
The requested password.
Discussion
The MDM server can update the password at any time. After that, identifiers yields a new array of identifiers. Call this method again to obtain the updated password.
The MDM server can change the available passwords at any time. When that happens, the list of valid identifiers updates accordingly. For example, the list of valid identifiers might change between the time that the app accesses identifiers and then calls this method passing in one of its elements. So, the app needs to handle the case that this method throws ManagedAppError.invalidIdentifier.