|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.accpac.AuthenticatorImpl
public final class AuthenticatorImpl
This class handles authenticating a Sage 300 ERP user.
It is made public only for use by the SWT Services code. Do not use this class in your own code; it is likely to change at frequent intervals.
Constructor Summary | |
---|---|
AuthenticatorImpl(javax.servlet.http.HttpServletRequest request,
java.lang.String company,
javax.servlet.http.HttpServletResponse response)
Deprecated. Use the constructor that includes the Provider |
|
AuthenticatorImpl(javax.servlet.http.HttpServletRequest request,
java.lang.String company,
javax.servlet.http.HttpServletResponse response,
Provider accpacProvider)
Constructor |
Method Summary | |
---|---|
void |
dispose()
signals that the Authenticator will not be used any further. |
java.lang.String |
getApplicationAuthenticationToken()
|
static com.sage.accpac.sm.program.IProgram |
getIProgramFromToken(java.lang.String token)
Gets the AccpacProgram from the Program token. |
static com.sage.accpac.sm.Program |
getProgramFromToken(java.lang.String token)
Gets the AccpacProgram from the Program token. |
static com.sage.accpac.sm.SharedDataSet |
getSharedDataSet(java.lang.String token)
Deprecated. without replacement |
java.lang.String |
getSystemAuthenticationToken()
Gets the authentication token for the user. |
static java.lang.String |
getTenantID(java.lang.String token)
Returns the tenant id for the user. |
static java.lang.String |
getUserID(java.lang.String token)
Gets the user id for the given authentication Token. |
static java.lang.String |
getUserInstance(java.lang.String token)
Deprecated. without replacement |
static java.lang.String |
getUserLanguage(java.lang.String token)
Gets the user language for the given authentication Token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public AuthenticatorImpl(javax.servlet.http.HttpServletRequest request, java.lang.String company, javax.servlet.http.HttpServletResponse response)
request
- the request coming incompany
- the company or datasetresponse
- the response, just in case we need to use itpublic AuthenticatorImpl(javax.servlet.http.HttpServletRequest request, java.lang.String company, javax.servlet.http.HttpServletResponse response, Provider accpacProvider)
request
- the request coming incompany
- the company or datasetresponse
- the response, just in case we need to use itaccpacProvider
- the (non-null) Sage 300 ERP (formerly Accpac) Provider
Method Detail |
---|
public java.lang.String getApplicationAuthenticationToken()
getApplicationAuthenticationToken
in interface Authenticator
public java.lang.String getSystemAuthenticationToken()
Authenticator
null
.
getSystemAuthenticationToken
in interface Authenticator
null
if the user is
not authenticated.public static com.sage.accpac.sm.Program getProgramFromToken(java.lang.String token)
token
- the Accpac Program token
getIProgramFromToken(String)
public static com.sage.accpac.sm.program.IProgram getIProgramFromToken(java.lang.String token)
token
- the Accpac Program token
@Deprecated public static com.sage.accpac.sm.SharedDataSet getSharedDataSet(java.lang.String token)
token
- the token returned by
getApplicationAuthenticationToken()
public static java.lang.String getUserID(java.lang.String token)
token
- the authentication token whose language is wanted.
public static java.lang.String getUserLanguage(java.lang.String token)
token
- the authentication token whose language is wanted.
@Deprecated public static java.lang.String getUserInstance(java.lang.String token)
token
- the authentication token whose language is wanted.
public static java.lang.String getTenantID(java.lang.String token)
This is only for use internally. Do not use.
token
- authentication token
public void dispose()
Authenticator
This should not throw exceptions.
dispose
in interface Authenticator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |