public final class PasswordAuthentication extends Object
Authenticator、Authenticator.getPasswordAuthentication()| コンストラクタと説明 |
|---|
PasswordAuthentication(String userName, char[] password)
指定されたユーザー名およびパスワードから、新しい
PasswordAuthenticationオブジェクトを作成します。 |
public PasswordAuthentication(String userName, char[] password)
PasswordAuthenticationオブジェクトを作成します。
指定されたユーザー・パスワードは、新しいPasswordAuthenticationオブジェクトに格納される前に複製されます。
userName−ユーザー名password - ユーザーのパスワードpublic String getUserName()
public char[] getPassword()
このメソッドはパスワードへの参照を返します。不要になったパスワード情報をゼロにする(消去する)のは、呼出し元の責任です。
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.