モジュール jdk.security.auth
パッケージ com.sun.security.auth

クラスUnixNumericUserPrincipal

  • すべての実装されたインタフェース:
    Serializable, Principal


    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を作成します。
    • コンストラクタの詳細

      • 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)を返します。
        定義:
        getName 、インタフェース: Principal
        戻り値:
        このUnixNumericUserPrincipalのユーザー識別番号(UID)
      • longValue

        public long longValue​()
        このUnixNumericUserPrincipalのユーザー識別番号(UID)をlong表現で返します。
        戻り値:
        このUnixNumericUserPrincipalのユーザー識別番号(UID)のlong表現。
      • toString

        public String toString​()
        このUnixNumericUserPrincipalの文字列表現を返します。
        定義:
        toString 、インタフェース: Principal
        オーバーライド:
        toString 、クラス:  Object
        戻り値:
        このUnixNumericUserPrincipalを表す文字列表現。
      • equals

        public boolean equals​(Object o)
        指定されたObjectがこのUnixNumericUserPrincipalと同じかどうかを比較します。 指定したオブジェクトがUnixNumericUserPrincipalでもあり、2つのUnixNumericUserPrincipalのユーザー識別番号(UID)が等しい場合は、trueを返します。
        定義:
        equals 、インタフェース: Principal
        オーバーライド:
        equals 、クラス:  Object
        パラメータ:
        o - このUnixNumericUserPrincipalと等しいかどうかを比較するオブジェクト。
        戻り値:
        指定されたObjectがこのUnixNumericUserPrincipalと等しい場合はtrue。
        関連項目:
        Object.hashCode()HashMap