Instance Property インスタンスプロパティ

password

The credential’s password. 資格情報のもつパスワード。

Declaration 宣言

var password: String? { get }

Discussion 議論

You should only access this property if you need the actual password value. If you only need to know if there is a password, use hasPassword. Accessing this property may result in prompting the user for access—for example, if the password is stored in the user’s keychain. あなたは、あなたが実際のパスワード値を必要とする場合にのみこのプロパティにアクセスすべきです。あなたがパスワードがあるかどうかを知る必要があるだけならば、hasPasswordを使ってください。このプロパティにアクセスすることは、アクセスに対してユーザに促すという結果になるかもしれません — 例えば、パスワードがユーザのもつキーチェーンに格納されるならば。

See Also 参照

Getting Credential Properties 資格情報プロパティを取得する