public class UnixNumericUserPrincipal extends Object implements Principal, Serializable
このクラスは Principal インタフェースを実装し、ユーザーの Unix ユーザー識別番号 (UID) を表します。
UnixNumericUserPrincipal のようなプリンシパルは特定の Subject と関連付けられており、追加された識別情報によって Subject を拡張します。これを実現する方法については、Subject クラスを参照してください。承認決定は、Subject に関連付けられたプリンシパルに基づいて行うことができます。
Principal, Subject, Serialized Form| コンストラクタと説明 |
|---|
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 の文字列表現を返します。 |
public UnixNumericUserPrincipal(String name)
String 表現を使用して UnixNumericUserPrincipal を作成します。
name - このユーザーのユーザー識別番号 (UID)。NullPointerException - name が null である場合。public UnixNumericUserPrincipal(long name)
UnixNumericUserPrincipal を作成します。
name - long で表されるこのユーザーのユーザー識別番号 (UID)。public String getName()
UnixNumericUserPrincipal のユーザー識別番号 (UID) を返します。
public long longValue()
UnixNumericUserPrincipal のユーザー識別番号 (UID) を long 表現で返します。
UnixNumericUserPrincipal のユーザー識別番号 (UID) の long 表現。public String toString()
UnixNumericUserPrincipal の文字列表現を返します。
public boolean equals(Object o)
UnixNumericUserPrincipal と同じかどうかを比較します。指定したオブジェクトが UnixNumericUserPrincipal でもあり、2 つの UnixNumericUserPrincipal のユーザー識別番号 (UID) が等しい場合は、true を返します。
public int hashCode()
UnixNumericUserPrincipal のハッシュコードを返します。
hashCode 、インタフェース: PrincipalhashCode 、クラス: ObjectUnixNumericUserPrincipal のハッシュコード。Object.equals(java.lang.Object), System.identityHashCode(java.lang.Object)
Copyright © 1998, 2013, Oracle and/or its affiliates. All rights reserved.