|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.security.acl.DefaultUserInfoImpl
DefaultUserInfoImpl is the default implementation of the UserInfo interface. UserInfo objects are created by a RealmProxy and passed to the T3Client constructor. The WebLogic Server uses a UserInfo object to allow the corresponding realm to retrieve the corresponding user and checks it against the provided information.
DefaultUserInfoImpl accepts as credentials password strings and/or a single X509 certificate or a chain of them. If the explicitly provided username is null, the user's name is extracted from the certificate.
If you inherit from this class, be sure to implement the hashCode and equals methods correctly.
Field Summary | |
protected java.util.Vector |
certificates
|
protected java.lang.String |
id
|
protected java.lang.String |
password
|
protected java.lang.String |
realmName
|
Constructor Summary | |
DefaultUserInfoImpl()
Constructs a DefaultUserInfoImpl. |
|
DefaultUserInfoImpl(java.lang.String name,
java.lang.Object credential)
Create a user using the default realm. |
|
DefaultUserInfoImpl(java.lang.String name,
java.lang.Object credential,
java.lang.String realmName)
|
Method Summary | |
protected byte[] |
crypt(byte[] bytes)
|
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsInAllButName(DefaultUserInfoImpl that)
Ensure that the non-name components of a UserInfo object match those of another. |
java.util.Vector |
getCertificates()
Deprecated. this method is not secure, and must not be trusted |
java.lang.String |
getName()
Gets the name associated with a DefaultUserInfo. |
java.lang.String |
getPassword()
|
java.lang.String |
getRealmName()
Gets the name of the realm associated with a DefaultUserInfo. |
boolean |
hasCertificates()
|
int |
hashCode()
|
boolean |
hasPassword()
|
protected void |
read(java.io.DataInput is)
|
void |
readExternal(java.io.ObjectInput is)
Reads a DefaultUserInfoImpl object from the specified object input stream. |
void |
readObject(WLObjectInput dis)
Reads a DefaultUserInfoImpl object from the specified WebLogic object input stream. |
protected void |
setCredential(java.lang.Object c)
|
java.lang.String |
toString()
|
protected void |
write(java.io.DataOutput os)
|
void |
writeExternal(java.io.ObjectOutput os)
Writes a DefaultUserInfoImpl object to the specified object output stream. |
void |
writeObject(WLObjectOutput dos)
Writes a DefaultUserInfoImpl object to the specified WebLogic object output stream. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String realmName
protected java.lang.String id
protected java.lang.String password
protected java.util.Vector certificates
Constructor Detail |
public DefaultUserInfoImpl()
public DefaultUserInfoImpl(java.lang.String name, java.lang.Object credential)
public DefaultUserInfoImpl(java.lang.String name, java.lang.Object credential, java.lang.String realmName)
Method Detail |
public java.lang.String getRealmName()
public java.lang.String getName()
public java.lang.String toString()
public java.util.Vector getCertificates()
public boolean hasCertificates()
protected void setCredential(java.lang.Object c)
public boolean hasPassword()
public java.lang.String getPassword()
protected byte[] crypt(byte[] bytes)
protected void write(java.io.DataOutput os) throws java.io.IOException
protected void read(java.io.DataInput is) throws java.io.IOException, java.lang.ClassNotFoundException
public void writeObject(WLObjectOutput dos) throws java.io.IOException
dos
- WLObjectOutput streampublic void readObject(WLObjectInput dis) throws java.io.IOException, java.lang.ClassNotFoundException
dis
- WLObjectInput streampublic void writeExternal(java.io.ObjectOutput os) throws java.io.IOException
os
- ObjectOutput streampublic void readExternal(java.io.ObjectInput is) throws java.io.IOException, java.lang.ClassNotFoundException
is
- ObjectInput streampublic int hashCode()
public boolean equals(java.lang.Object obj)
public boolean equalsInAllButName(DefaultUserInfoImpl that)
|
Documentation is available at http://www.weblogic.com/docs51 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |