|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--java.net.PasswordAuthentication
PasswordAuthentication 클래스는 Authenticator 가 사용하는 데이터 홀더입니다. 이것은 유저명과 패스워드를 위한 리포지터리(repository)에 지나지 않습니다.
Authenticator
,
Authenticator.getPasswordAuthentication()
생성자의 개요 | |
PasswordAuthentication (String userName,
char[] password)
지정된 유저명 및 패스워드로부터, 새로운 PasswordAuthentication 오브젝트를 작성합니다.
|
메소드의 개요 | |
char[] |
getPassword ()
유저의 패스워드를 돌려줍니다. |
String |
getUserName ()
유저명을 돌려줍니다. |
클래스 java.lang. Object 에서 상속받은 메소드 |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자의 상세 |
public PasswordAuthentication(String userName, char[] password)
PasswordAuthentication
오브젝트를 작성합니다.
지정된 유저 패스워드가 복제되어 새로운 PasswordAuthentication
에 저장됩니다.
userName
- 유저명password
- 유저의 패스워드메소드의 상세 |
public String getUserName()
public char[] getPassword()
이 메소드는 패스워드에의 참조를 돌려줍니다. 불필요하게 된 패스워드 정보를 제로로 하는 (소거한다) 것은 호출측의 책임입니다.
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
Java, Java 2 D, 및 JDBC 는 미국 및 그 외의 나라에 있어서의 미국 Sun Microsystems, Inc. 의 상표 혹은 등록상표입니다.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.