- 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
に関連付けられたプリンシパルに基づいて行うことができます。
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 UnixNumericUserPrincipal(long name)
ユーザーの識別番号(UID)のlong表現を使用してUnixNumericUserPrincipal
を作成します。UnixNumericUserPrincipal(String name)
ユーザーの識別番号(UID)のString
表現を使用してUnixNumericUserPrincipal
を作成します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 boolean
equals(Object o)
指定されたObjectがこのUnixNumericUserPrincipal
と同じかどうかを比較します。String
getName()
このUnixNumericUserPrincipal
のユーザー識別番号(UID)を返します。int
hashCode()
UnixNumericUserPrincipal
のハッシュ・コードを返します。long
longValue()
このUnixNumericUserPrincipal
のユーザー識別番号(UID)をlong表現で返します。String
toString()
この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
public String getName()
このUnixNumericUserPrincipal
のユーザー識別番号(UID)を返します。
-
longValue
public long longValue()
このUnixNumericUserPrincipal
のユーザー識別番号(UID)をlong表現で返します。- 戻り値:
- この
UnixNumericUserPrincipal
のユーザー識別番号(UID)のlong表現。
-
toString
public String toString()
このUnixNumericUserPrincipal
の文字列表現を返します。
-
equals
public boolean equals(Object o)
指定されたObjectがこのUnixNumericUserPrincipal
と同じかどうかを比較します。 指定したオブジェクトがUnixNumericUserPrincipal
でもあり、2つのUnixNumericUserPrincipalのユーザー識別番号(UID)が等しい場合は、trueを返します。
-
hashCode
public int hashCode()
UnixNumericUserPrincipal
のハッシュ・コードを返します。- 定義:
hashCode
、インタフェース:Principal
- オーバーライド:
hashCode
、クラス:Object
- 戻り値:
UnixNumericUserPrincipal
のハッシュ・コード。- 関連項目:
Object.equals(java.lang.Object)
,System.identityHashCode(java.lang.Object)
-
-