クラスUnixNumericUserPrincipal
java.lang.Object
com.sun.security.auth.UnixNumericUserPrincipal
- すべての実装されたインタフェース:
Serializable,Principal
public class UnixNumericUserPrincipal extends Object implements Principal, Serializable
このクラスは
Principalインタフェースを実装し、ユーザーのUnixユーザー識別番号(UID)を表します。
UnixNumericUserPrincipalのようなプリンシパルは特定のSubjectと関連付けられており、追加された識別情報によってSubjectを拡張します。 これを実現する方法については、Subjectクラスを参照してください。 承認決定は、Subjectに関連付けられたプリンシパルに基づいて行うことができます。
- 導入されたバージョン:
- 1.4
- 関連項目:
-
コンストラクタのサマリー
コンストラクタコンストラクタ説明UnixNumericUserPrincipal(long name) ユーザーの識別番号(UID)のlong表現を使用してUnixNumericUserPrincipalを作成します。ユーザーの識別番号(UID)のString表現を使用してUnixNumericUserPrincipalを作成します。 -
メソッドのサマリー
-
コンストラクタの詳細
-
UnixNumericUserPrincipal
public UnixNumericUserPrincipal(String name) ユーザーの識別番号(UID)のString表現を使用してUnixNumericUserPrincipalを作成します。- パラメータ:
name- このユーザーのユーザー識別番号(UID)。- 例外:
NullPointerException-nameがnullである場合。
-
UnixNumericUserPrincipal
public UnixNumericUserPrincipal(long name) ユーザーの識別番号(UID)のlong表現を使用してUnixNumericUserPrincipalを作成します。- パラメータ:
name- longで表されるこのユーザーのユーザー識別番号(UID)。
-
-
メソッドの詳細
-
getName
-
longValue
public long longValue()このUnixNumericUserPrincipalのユーザー識別番号(UID)をlong表現で返します。- 戻り値:
- この
UnixNumericUserPrincipalのユーザー識別番号(UID)のlong表現。
-
toString
-
equals
public boolean equals(Object o) 指定されたObjectがこのUnixNumericUserPrincipalと同じかどうかを比較します。 指定したオブジェクトがUnixNumericUserPrincipalでもあり、2つのUnixNumericUserPrincipalのユーザー識別番号(UID)が等しい場合は、trueを返します。 -
hashCode
-