JAAS

com.sun.security.auth
クラス UnixNumericUserPrincipal

java.lang.Object
  |
  +--com.sun.security.auth.UnixNumericUserPrincipal
すべての実装インタフェース:
Principal, Serializable

public class UnixNumericUserPrincipal
extends Object
implements Principal, Serializable

Principal インタフェースを実装し、ユーザの Unix ユーザ識別番号 (UID) を表します。

UnixNumericUserPrincipal のような主体は特定の Subject と関連付けられており、追加された識別情報に よって Subject を拡張します。拡張の詳細については、 Subject クラスを参照してください。承認の決定は Subject に関連付けられた主体を基にして行われ ます。

関連項目:
Principal, Subject, 直列化された形式

コンストラクタの概要
UnixNumericUserPrincipal(long name)
          ユーザのユーザ識別番号 (UID) の long 表現を使用して UnixNumericUserPrincipal を作成します。
UnixNumericUserPrincipal(String name)
          ユーザのユーザ識別番号 (UID) の String 表現を使用して UnixNumericUserPrincipal を作成します。
 
メソッドの概要
 boolean equals(Object o)
          指定したオブジェクトと UnixNumericUserPrincipal を 比較し、同等であるかどうかを調べます。
 String getName()
          UnixNumericUserPrincipal のユーザ識別番号 (UID) を返します。
 int hashCode()
          UnixNumericUserPrincipal のハッシュコードを返します。
 long longValue()
          UnixNumericUserPrincipal のユーザ識別番号 (UID) を long 表現で返します。
 String toString()
          UnixNumericUserPrincipal の文字列表現を返します。
 
クラス java.lang.Object から継承したメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

UnixNumericUserPrincipal

public UnixNumericUserPrincipal(String name)
ユーザのユーザ識別番号 (UID) の String 表現を使用して UnixNumericUserPrincipal を作成します。

パラメータ:
name - ユーザのユーザ識別番号 (UID)
例外:
NullPointerException - namenull の場合

UnixNumericUserPrincipal

public UnixNumericUserPrincipal(long name)
ユーザのユーザ識別番号 (UID) の long 表現を使用して UnixNumericUserPrincipal を作成します。

パラメータ:
name - long で表されるユーザのユーザ識別番号 (UID)
メソッドの詳細

getName

public String getName()
UnixNumericUserPrincipal のユーザ識別番号 (UID) を返します。

定義:
インタフェース Principal 内の getName
戻り値:
UnixNumericUserPrincipal のユーザ識別番号 (UID)

longValue

public long longValue()
UnixNumericUserPrincipal のユーザ識別番号 (UID) を long 表現で返します。

戻り値:
UnixNumericUserPrincipal のユーザ識別番号 (UID) の long 表現

toString

public String toString()
UnixNumericUserPrincipal の文字列表現を返します。

定義:
インタフェース Principal 内の toString
オーバーライド:
クラス Object 内の toString
戻り値:
UnixNumericUserPrincipal の文字列表現

equals

public boolean equals(Object o)
指定したオブジェクトと UnixNumericUserPrincipal を 比較し、同等であるかどうかを調べます。指定したオブジェクトが UnixNumericUserPrincipal であり、2 つの UnixNumericUserPrincipal のユーザ識別番号 (UID) が等しい場合は、 true を返します。

定義:
インタフェース Principal 内の equals
オーバーライド:
クラス Object 内の equals
パラメータ:
o - UnixNumericUserPrincipal と比較し、 同等であるかどうかを調べるオブジェクト
戻り値:
指定したオブジェクトが UnixNumericUserPrincipal と 等しい場合は true

hashCode

public int hashCode()
UnixNumericUserPrincipal のハッシュコードを返します。

定義:
インタフェース Principal 内の hashCode
オーバーライド:
クラス Object 内の hashCode
戻り値:
UnixNumericUserPrincipal のハッシュコード

JAAS