JavaTM 2
Platform
Std.  Ed.  v1. 4.0

java.net
클래스 PasswordAuthentication

java.lang.Object 
  |
  +--java.net.PasswordAuthentication

public final class PasswordAuthentication
extends Object

PasswordAuthentication 클래스는 Authenticator 가 사용하는 데이터 홀더입니다. 이것은 유저명과 패스워드를 위한 리포지터리(repository)에 지나지 않습니다.

도입된 버젼:
1.2
관련 항목:
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
 

생성자의 상세

PasswordAuthentication

public PasswordAuthentication(String  userName,
                              char[] password)
지정된 유저명 및 패스워드로부터, 새로운 PasswordAuthentication 오브젝트를 작성합니다.

지정된 유저 패스워드가 복제되어 새로운 PasswordAuthentication 에 저장됩니다.

파라미터:
userName - 유저명
password - 유저의 패스워드
메소드의 상세

getUserName

public String  getUserName()
유저명을 돌려줍니다.

반환값:
유저명

getPassword

public char[] getPassword()
유저의 패스워드를 돌려줍니다.

이 메소드는 패스워드에의 참조를 돌려줍니다. 불필요하게 된 패스워드 정보를 제로로 하는 (소거한다) 것은 호출측의 책임입니다.

반환값:
패스워드

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

버그의 보고와 기능의 리퀘스트
이외의 API 레퍼런스 및 개발자용 문서에 대해서는 Java 2 SDK SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

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.