All Examples This Package
Class examples.security.rdbmsrealm.RdbmsUserInfo
java.lang.Object
|
+----examples.security.rdbmsrealm.RdbmsUserInfo
- public class RdbmsUserInfo
- extends Object
- implements UserInfo
Class RdbmsUserInfo is a trivial implementation of UserInfo. For
security, the password is private and only checks for equality.
Overall the security is weak because the serialization contains
the clear-text password.
- Author:
- Copyright (c) 1997-1999 by BEA Systems. All Rights Reserved.
-
id
-
-
realmName
-
-
RdbmsUserInfo()
- Constructs a RdbmsUserInfo.
-
RdbmsUserInfo(String, String, String)
-
-
getName()
- Gets the name associated with a DefaultUserInfo.
-
getRealmName()
- Gets the name of the realm associated with a DefaultUserInfo.
-
readObject(WLObjectInput)
-
Reads a RdbmsUserInfo object from the specified WebLogic object
input stream.
-
writeObject(WLObjectOutput)
- Writes a RdbmsUserInfo object to the specified WebLogic object
output stream.
id
protected String id
realmName
protected String realmName
RdbmsUserInfo
public RdbmsUserInfo(String name,
String password,
String realmName)
RdbmsUserInfo
public RdbmsUserInfo()
- Constructs a RdbmsUserInfo. For serialization only.
getRealmName
public String getRealmName()
- Gets the name of the realm associated with a DefaultUserInfo.
- Returns:
- Name of realm as a string
getName
public String getName()
- Gets the name associated with a DefaultUserInfo.
- Returns:
- Name of this user
writeObject
public void writeObject(WLObjectOutput dos) throws IOException
- Writes a RdbmsUserInfo object to the specified WebLogic object
output stream.
- Parameters:
- dos - WLObjectOutput stream
- Throws: IOException
- if there is an I/O error
readObject
public void readObject(WLObjectInput dis) throws IOException, ClassNotFoundException
- Reads a RdbmsUserInfo object from the specified WebLogic object
input stream.
- Parameters:
- dis - WLObjectInput stream
- Throws: IOException
- if there is an I/O error
- Throws: ClassNotFoundException
- if the DefaultUserInfo cannot be found or read
All Examples This Package