JavaTM 2 Platform
Standard Ed. 5.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
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.