Skip to main content

glassfish 2.1.1 classes update

No replies
matrixV
Offline
Joined: 2012-10-16
Points: 0

Hello all... I need help with the upgrade of some classes
I'm facing an old Java Project that creates some custom Realms but depends on some Glassfish 2.1.1 libraries. I need to use this project on Glassfish 3.1 so I have to use an upgrade of those classes.
The libraries and classes involved are:

appserv-rt.jar:

com.sun.enterprise.security.LoginException
com.sun.enterprise.security.auth.realm.NoSuchRealmException
com.sun.enterprise.deployment.PrincipalImpl
com.sun.enterprise.iiop.security.GSSUPName
com.sun.enterprise.iiop.security.AnonCredential
com.sun.enterprise.security.AppservAccessController
com.sun.enterprise.security.SecurityContext
com.sun.enterprise.security.auth.login.PasswordCredential
com.sun.enterprise.security.auth.login.X509CertificateCredential
com.sun.enterprise.security.auth.login.ServerLoginCallbackHandler
com.sun.enterprise.security.auth.realm.Realm
com.sun.enterprise.security.auth.realm.certificate.CertificateRealm
com.sun.enterprise.security.audit.AuditManagerFactory
com.sun.enterprise.security.audit.AuditManager
com.sun.enterprise.security.ClientSecurityContext
com.sun.enterprise.appclient.AppContainer
com.sun.enterprise.security.auth.login.LoginCallbackHandler
com.sun.enterprise.server.ApplicationServer
com.sun.web.security.WebProgrammaticLogin
com.sun.enterprise.security.UsernamePasswordStore
com.sun.appserv.security.ProgrammaticLoginPermission
com.sun.enterprise.security.auth.realm.IASRealm
com.sun.enterprise.security.auth.realm.BadRealmException
com.sun.enterprise.security.auth.realm.NoSuchUserException
com.sun.enterprise.security.auth.realm.InvalidOperationException
com.sun.enterprise.deployment.Group
com.sun.web.security.PrincipalGroupFactory
com.sun.enterprise.security.auth.realm.file.FileRealm
com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm
com.sun.enterprise.security.auth.realm.ldap.LDAPRealm
com.sun.enterprise.security.auth.realm.solaris.SolarisRealm
com.sun.appserv.security.AppservRealm
com.sun.enterprise.security.auth.realm.User

appserv-deployment-client.jar:

com.sun.enterprise.util.i18n.StringManager
com.sun.logging.LogDomains

Is there any Glassfish 3.1 equivalent classes for them? I found that i.e. com.sun.enterprise.security.LoginException and com.sun.enterprise.security.auth.login.common.LoginException have the same API.. can I use it?
thanks