All Examples This Package
Class examples.security.snoopproof.SnoopProofRealm
java.lang.Object
|
+----weblogic.security.acl.BasicRealmDelegator
|
+----examples.security.snoopproof.SnoopProofRealm
- public class SnoopProofRealm
- extends BasicRealmDelegator
SnoopProofRealm delegates most operations to some other
realm, but implements authentication by comparing MD5 digests of the
present and previous period, and prevents repeated success with
the same credential.
- Author:
- Copyright (c) 1997-1999 by BEA Systems. All Rights Reserved.
-
SnoopProofRealm()
- Default constructor.
-
getUser(UserInfo)
- Checks user info against digests based the current and previous
minute.
-
init(String, Object)
- Initializes the realm.
-
load(String, Object)
- Loads the SnoopProof realm, which has the effect of
setting up the proxy as the delegate for other names.
-
main(String[])
- Constructs a SnoopProofRealm instance for the indicated realm
and realm password and creates a Syncer as a simple time
service.
SnoopProofRealm
public SnoopProofRealm()
- Default constructor.
main
public static void main(String args[])
- Constructs a SnoopProofRealm instance for the indicated realm
and realm password and creates a Syncer as a simple time
service.
init
public void init(String name,
Object credential) throws NotOwnerException
- Initializes the realm.
- Overrides:
- init in class BasicRealmDelegator
getUser
public User getUser(UserInfo userInfo)
- Checks user info against digests based the current and previous
minute.
- Overrides:
- getUser in class BasicRealmDelegator
load
public void load(String name,
Object credential) throws ClassNotFoundException, IOException, NotOwnerException
- Loads the SnoopProof realm, which has the effect of
setting up the proxy as the delegate for other names.
- Overrides:
- load in class BasicRealmDelegator
All Examples This Package