Now the SecureRegistry can be used as an authenticating registry and a non-authenticating registry. Below two constructors are provided to instantiate secure registry in those scenarios.

1) Authenticating registry

public SecureRegistry(String userID, String password, Registry registry, Realm defaultRealm)

User is authenticated by the user name and the password using the user manager on instantiation.
Exception is thrown if the authentication failed.

2) Non-authenticating registry

public SecureRegistry(String userID, Registry registry, Realm defaultRealm)

Secure registry is created for the user without authentication. This should be used if the user is authenticated outside
the secure registry (e.g. infocard).

In both above registries the user's authorizations are checked before performing any task on the registry.

Thanks,
Chathura

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to