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.

Variable Index

 o id
 o realmName

Constructor Index

 o RdbmsUserInfo()
Constructs a RdbmsUserInfo.
 o RdbmsUserInfo(String, String, String)

Method Index

 o getName()
Gets the name associated with a DefaultUserInfo.
 o getRealmName()
Gets the name of the realm associated with a DefaultUserInfo.
 o readObject(WLObjectInput)
Reads a RdbmsUserInfo object from the specified WebLogic object input stream.
 o writeObject(WLObjectOutput)
Writes a RdbmsUserInfo object to the specified WebLogic object output stream.

Variables

 o id
 protected String id
 o realmName
 protected String realmName

Constructors

 o RdbmsUserInfo
 public RdbmsUserInfo(String name,
                      String password,
                      String realmName)
 o RdbmsUserInfo
 public RdbmsUserInfo()
Constructs a RdbmsUserInfo. For serialization only.

Methods

 o getRealmName
 public String getRealmName()
Gets the name of the realm associated with a DefaultUserInfo.

Returns:
Name of realm as a string
 o getName
 public String getName()
Gets the name associated with a DefaultUserInfo.

Returns:
Name of this user
 o 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
 o 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