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