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を作成します。
- 
メソッドのサマリー
- 
コンストラクタの詳細- 
UnixNumericUserPrincipalpublic UnixNumericUserPrincipal(String name)ユーザーの識別番号(UID)のString表現を使用してUnixNumericUserPrincipalを作成します。- パラメータ:
- name- このユーザーのユーザー識別番号(UID)。
- 例外:
- NullPointerException-- nameが- nullである場合。
 
- 
UnixNumericUserPrincipalpublic UnixNumericUserPrincipal(long name)ユーザーの識別番号(UID)のlong表現を使用してUnixNumericUserPrincipalを作成します。- パラメータ:
- name- longで表されるこのユーザーのユーザー識別番号(UID)。
 
 
- 
- 
メソッドの詳細- 
getNamepublic String getName()このUnixNumericUserPrincipalのユーザー識別番号(UID)を返します。
- 
longValuepublic long longValue()このUnixNumericUserPrincipalのユーザー識別番号(UID)をlong表現で返します。- 戻り値:
- このUnixNumericUserPrincipalのユーザー識別番号(UID)のlong表現。
 
- 
toStringpublic String toString()このUnixNumericUserPrincipalの文字列表現を返します。
- 
equalspublic boolean equals(Object o)指定されたObjectがこのUnixNumericUserPrincipalと同じかどうかを比較します。 指定したオブジェクトがUnixNumericUserPrincipalでもあり、2つのUnixNumericUserPrincipalのユーザー識別番号(UID)が等しい場合は、trueを返します。
- 
hashCodepublic int hashCode()UnixNumericUserPrincipalのハッシュ・コードを返します。- 定義:
- hashCode、インタフェース:- Principal
- オーバーライド:
- hashCode、クラス:- Object
- 戻り値:
- UnixNumericUserPrincipalのハッシュ・コード。
- 関連項目:
- Object.equals(java.lang.Object),- System.identityHashCode(java.lang.Object)
 
 
-