|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Objectjavax.security.auth.callback.PasswordCallback
public class PasswordCallback
�ײ㰲ȫ����ʵ����һ�� PasswordCallback
�����䴫�ݸ� CallbackHandler
�� handle
�������Ի�ȡ������Ϣ��
CallbackHandler
,
���л��������췽��ժҪ | |
---|---|
PasswordCallback(String prompt,
boolean echoOn)
�������ʾ�Ͳ���ֵ�� PasswordCallback ���ò���ֵָ����������ʱ�Ƿ�Ӧ����ʾ�����롣 |
����ժҪ | |
---|---|
void |
clearPassword()
�����ȡ�������롣 |
char[] |
getPassword()
��ȡ�����������롣 |
String |
getPrompt()
��ȡ��ʾ�� |
boolean |
isEchoOn()
���������Ƿ�Ӧ���ڼ���ʱ��ʾ�� |
void |
setPassword(char[] password)
���û�ȡ�������롣 |
���� java.lang.Object �̳еķ��� |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
���췽����ϸ��Ϣ |
---|
public PasswordCallback(String prompt, boolean echoOn)
PasswordCallback
���ò���ֵָ����������ʱ�Ƿ�Ӧ����ʾ�����롣
prompt
- ���������������ʾ�� echoOn
- �������Ӧ���ڼ���ʱ��ʾ����ò���Ϊ true��
IllegalArgumentException
- ��� prompt
Ϊ null ���� prompt
�ij���Ϊ 0��������ϸ��Ϣ |
---|
public String getPrompt()
public boolean isEchoOn()
public void setPassword(char[] password)
�˷����ڴ洢 password ǰ��������˸��ơ�
password
- ��ȡ�������룬������Ϊ null��getPassword()
public char[] getPassword()
�˷������ػ�ȡ���������һ�ݸ�����
setPassword(char[])
public void clearPassword()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������