|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkrb5.lib.PrincipalName
public class PrincipalName
Class Description : Principal name class. A modified version of the code obtained from the Open Group Research Institute.
Constructor Summary | |
---|---|
PrincipalName(java.lang.String name)
Class constructor |
|
PrincipalName(java.lang.String[] nameParts)
Class constructor |
|
PrincipalName(java.lang.String[] nameParts,
int type)
Class constructor |
|
PrincipalName(java.lang.String[] nameParts,
java.lang.String realm,
int type)
Class constructor |
|
PrincipalName(java.lang.String name,
int type)
Class constructor |
|
PrincipalName(java.lang.String name,
java.lang.String realm)
Class constructor |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones this object |
boolean |
equals(PrincipalName other)
Determines whether two principal names are the same or not |
boolean |
equalsWithoutRealm(PrincipalName other)
Determines whether two principal names are the same without realm |
java.lang.String |
getNameString()
Returns name as a String |
java.lang.String[] |
getNameStrings()
Returns the name |
int |
getNameType()
Returns the name type as an array of String |
Realm |
getRealm()
Returns the realm |
java.lang.String |
getRealmString()
Returns the realm as a String |
void |
setRealm(Realm new_nameRealm)
Sets the realm |
void |
setRealm(java.lang.String realmsString)
Sets the realm String |
byte[][] |
toByteArray()
Returns the principal name as an array of bytes |
java.lang.String |
toString()
Converts a principal name into printable format |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrincipalName(java.lang.String[] nameParts, int type)
nameParts
- String[]type
- intpublic PrincipalName(java.lang.String[] nameParts, java.lang.String realm, int type) throws RealmException
nameParts
- String[]realm
- Stringtype
- int
RealmException
public PrincipalName(java.lang.String[] nameParts)
nameParts
- String[]public PrincipalName(java.lang.String name, int type) throws RealmException
name
- Stringtype
- int
RealmException
public PrincipalName(java.lang.String name) throws RealmException
name
- String
RealmException
public PrincipalName(java.lang.String name, java.lang.String realm) throws RealmException
name
- Stringrealm
- String
RealmException
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public boolean equals(PrincipalName other)
other
- PrincipalName
public boolean equalsWithoutRealm(PrincipalName other)
other
- PrincipalName
public int getNameType()
public java.lang.String[] getNameStrings()
public byte[][] toByteArray()
public java.lang.String getRealmString()
public Realm getRealm()
public void setRealm(Realm new_nameRealm)
new_nameRealm
- Realmpublic void setRealm(java.lang.String realmsString) throws RealmException
realmsString
- String
RealmException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getNameString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |