@Exported 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
、インタフェース: Principal
hashCode
、クラス: Object
UnixNumericUserPrincipal
のハッシュ・コード。Object.equals(java.lang.Object)
, System.identityHashCode(java.lang.Object)
Copyright © 1998, 2014, Oracle and/or its affiliates. All rights reserved.