Realm ::= GeneralString
This class is immutable.
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public Object | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public static Realm | |
| public static String[] | Returns: array of realms including at least cRealm as the first elementthe initiating realm, not null cRealm, String the target realm, not null, not equals to cRealm sRealm)Returns an array of realms that may be traversed to obtain a TGT from the initiating realm cRealm to the target realm sRealm. |
| public int | |
| protected static boolean | |
| public static Realm | Returns: an instance of Realm.the Der input stream value, which contains one or more marshaled value. data, byte tag number. explicitTag, boolean indicate if this data field is optional optional)Parse (unmarshal) a realm from a DER input stream. |
| private static String[] | Returns: array of realms including at least cRealm as the first elementthe initiating realm cRealm, String the target realm, not the same as cRealm sRealm)Parses the [capaths] stanza of the configuration file for a list of realms to traverse to obtain credentials from the initiating realm cRealm to the target realm sRealm. |
| private static String[] | Returns: array of realms including cRealm as the first elementthe initiating realm cRealm, String the target realm, not the same as cRealm sRealm)Build a list of realm that can be traversed to obtain credentials from the initiating realm cRealm for a service in the target realm sRealm. |
| protected static String | |
| public static String | |
| public static String | |
| private static String | subStringFrom(String[] components, int from)
Creates a realm name using components from the given position. |
| public String |
| realm | back to summary |
|---|---|
| private final String realm | |
| Realm | back to summary |
|---|---|
| public Realm(String name) throws RealmException | |
| Realm | back to summary |
|---|---|
| public Realm(DerValue encoding) throws Asn1Exception, RealmException, IOException Constructs a Realm object.
| |
| asn1Encode | back to summary |
|---|---|
| public byte[] asn1Encode() throws Asn1Exception, IOException Encodes a Realm object.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getDefault | back to summary |
|---|---|
| public static Realm getDefault() throws RealmException | |
| getRealmsList | back to summary |
|---|---|
| public static String[] getRealmsList(String cRealm, String sRealm) Returns an array of realms that may be traversed to obtain
a TGT from the initiating realm cRealm to the target realm
sRealm.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isValidRealmString | back to summary |
|---|---|
| protected static boolean isValidRealmString(String name) | |
| parse | back to summary |
|---|---|
| public static Realm parse(DerInputStream data, byte explicitTag, boolean optional) throws Asn1Exception, IOException, RealmException Parse (unmarshal) a realm from a DER input stream. This form parsing might be used when expanding a value which is part of a constructed sequence and uses explicitly tagged type.
| |
| parseCapaths | back to summary |
|---|---|
| private static String[] parseCapaths(String cRealm, String sRealm) throws KrbException Parses the [capaths] stanza of the configuration file for a list of realms to traverse to obtain credentials from the initiating realm cRealm to the target realm sRealm. For a given client realm C there is a tag C in [capaths] whose subtag S has a value which is a (possibly partial) path from C to S. When the path is partial, it contains only the tail of the full path. Values of other subtags will be used to build the full path. The value "." means a direct path from C to S. If realm S does not appear as a subtag, there is no path defined here. The implementation ignores all values which equals to C or S, or a "." in multiple values, or any duplicated realm names. When a path value has more than two realms, they can be specified with multiple key-value pairs each having a single value, but the order must not change. For example: [capaths] TIVOLI.COM = { IBM.COM = IBM_LDAPCENTRAL.COM MOONLITE.ORG IBM_LDAPCENTRAL.COM = LDAPCENTRAL.NET LDAPCENTRAL.NET = . } TIVOLI.COM has a direct path to LDAPCENTRAL.NET, which has a direct path to IBM_LDAPCENTRAL.COM. It also has a partial path to IBM.COM being "IBM_LDAPCENTRAL.COM MOONLITE.ORG". Merging these info together, a full path from TIVOLI.COM to IBM.COM will be TIVOLI.COM -> LDAPCENTRAL.NET -> IBM_LDAPCENTRAL.COM -> IBM_LDAPCENTRAL.COM -> MOONLITE.ORG Please note the sRealm IBM.COM does not appear in the path.
| |
| parseHierarchy | back to summary |
|---|---|
| private static String[] parseHierarchy(String cRealm, String sRealm) Build a list of realm that can be traversed to obtain credentials from the initiating realm cRealm for a service in the target realm sRealm. | |
| parseRealm | back to summary |
|---|---|
| protected static String parseRealm(String name) throws RealmException | |
| parseRealmAtSeparator | back to summary |
|---|---|
| public static String parseRealmAtSeparator(String name) throws RealmException | |
| parseRealmComponent | back to summary |
|---|---|
| public static String parseRealmComponent(String name) | |
| subStringFrom | back to summary |
|---|---|
| private static String subStringFrom(String[] components, int from) Creates a realm name using components from the given position. For example, subStringFrom({"A", "B", "C"}, 1) is "B.C". | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |