public abstract class AuthenticationHandler extends Authenticator
Modifier and Type | Class and Description |
---|---|
static class |
AuthenticationHandler.AuthenticationType |
static class |
AuthenticationHandler.ConnectStatus |
static class |
AuthenticationHandler.HandlerType |
static class |
AuthenticationHandler.SOAPRequestStatus |
Authenticator.RequestorType
Constructor and Description |
---|
AuthenticationHandler(AuthenticationHandler.HandlerType eType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
checkAuthenticationStatus()
Called by Protocol to return the status of the authentication call.
|
abstract boolean |
checkSOAPAuthenticationStatus()
Called by xfawsdlconnectionsetproxy to return the status of the
authentication call, and if successful
|
abstract AuthenticationHandler |
clone()
Clone this AuthenticationHandler object.
|
abstract boolean |
getBasicCredentials(String sURL,
String sRealm,
StringHolder sUserID,
CharacterHolder aPassword)
Called by Protocol to return the user id and password for the URL
|
abstract boolean |
getBasicSOAPCredentials(String sSOAPAddress,
String sConnectionName,
String sOperationName,
StringHolder sUserID,
CharacterHolder aPassword)
Called by xfawsdlconnectionsetproxy to return the user id and password
for the SOAP header
|
abstract boolean |
getCertificateCredentials(String sUrl,
CharacterHolder aCertPassword,
IntegerHolder nCertSize,
ObjectHolder<byte[]> oCertBuffer,
StringHolder sHint)
Called Protocol to return the certificate for the URL
|
String |
getConnectionName()
Gets the name of our wsdl connection (wsdlConnection
name="DataConnection")
|
AuthenticationHandler.ConnectStatus |
getConnectStatus()
Gets the status of the current connection
|
AuthenticationHandler.HandlerType |
getHandlerType()
Gets the current handler type; client or server
|
String |
getHint()
Gets the hint used by some applications to track their certificate
|
String |
getHost()
Gets the Host we are dealing with (server name)
|
CharacterHolder |
getPassword()
Gets the password, used for both transport and SOAP
|
String |
getRealm()
Gets the realm information
|
String |
getSOAPAddress()
Gets the the http:// SOAP address.
|
AuthenticationHandler.AuthenticationType |
getSOAPAuthType()
Gets the SOAP layer authentication type.
|
String |
getSOAPFaultCode()
Gets the
|
String |
getSOAPFaultString()
Gets the
|
String |
getSOAPOperation()
Gets the name of the operation we are invoking in the SOAP message
|
AuthenticationHandler.SOAPRequestStatus |
getSOAPRequestStatus()
Gets the status of the current soap request
|
AuthenticationHandler.AuthenticationType |
getTransportAuthType()
Gets the transport layer authentication type
|
String |
getType()
Gets the type of transport authentication (basic, digest)
|
String |
getURL()
Gets the URL we are dealing with
|
String |
getUserID()
Gets the user id, used for both transport and SOAP
|
abstract boolean |
isCertificateAuthorityValid(String sUrl)
This method is called by the underlying protocol code to give the
application a chance to deal with a server that states that Certificate
Authority is unknown.
|
void |
logMessage(MsgFormatPos oError)
This method is called by the underlying Protocol code to give the
application a chance to deal with a log message.
|
void |
reset()
reset the member variables
|
void |
setConnectionName(String sConnectionName)
Sets the name of our wsdl connection (wsdlConnection
name="DataConnection")
|
void |
setConnectStatus(AuthenticationHandler.ConnectStatus eStatus)
Sets the status of the current connection.
|
void |
setHandlerType(AuthenticationHandler.HandlerType eHandlerType)
Sets the current Handler type (client or server)
|
void |
setHint(String sHint)
Sets the a hint used by some applications to track their certificate.
|
void |
setHost(String sHost)
Sets the Host we are dealing with (server name).
|
void |
setPassword(CharacterHolder aPassword)
Sets the password, used for both transport and SOAP.
|
void |
setRealm(String sRealm)
Sets the the realm information, to return to client.
|
void |
setSOAPAddress(String sSOAPAddress)
Sets the the http:// SOAP address.
|
void |
setSOAPAuthType(AuthenticationHandler.AuthenticationType eAuthType)
Sets the SOAP layer authentication type.
|
void |
setSOAPFaultCode(String sSOAPFaultCode)
Sets the
|
void |
setSOAPFaultString(String sSOAPFault)
Sets the
|
void |
setSOAPOperation(String sSOAPOperation)
Sets the name of the operation we are invoking in the SOAP message
|
void |
setSOAPRequestStatus(AuthenticationHandler.SOAPRequestStatus eSOAPStatus)
Sets the the status of the current SOAP request
|
void |
setTransportAuthType(AuthenticationHandler.AuthenticationType eAuthType)
Sets the current transport authentication type
|
void |
setType(String sType)
Sets the type of transport authentication, to return to client.
|
void |
setURL(String sURL)
Sets the current URL.
|
void |
setUserID(String sUserID)
Sets the current user id.
|
requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
public AuthenticationHandler(AuthenticationHandler.HandlerType eType)
eType
- The handler type; CLIENT or SERVERpublic abstract boolean checkAuthenticationStatus()
public abstract boolean checkSOAPAuthenticationStatus()
public abstract AuthenticationHandler clone()
public abstract boolean getBasicCredentials(String sURL, String sRealm, StringHolder sUserID, CharacterHolder aPassword)
sURL
- passed in by the caller(Protocol) - the url we are
connecting tosRealm
- passed in by the caller(Protocol) - the realm
information from the protocol layersUserID
- to be filled by the method - the user id to use for the
connectionaPassword
- to be filled by the method - the password to use for
the connectionpublic abstract boolean getBasicSOAPCredentials(String sSOAPAddress, String sConnectionName, String sOperationName, StringHolder sUserID, CharacterHolder aPassword)
sSOAPAddress
- passed in by the caller - the SOAP address we are
connecting tosConnectionName
- passed in by the caller - the wsdlConnection namesOperationName
- passed in by the caller - the name of the
operation being calledsUserID
- to be filled by the method - the user id to use
for the connectionaPassword
- to be filled by the method - the password to use
for the connectionpublic abstract boolean getCertificateCredentials(String sUrl, CharacterHolder aCertPassword, IntegerHolder nCertSize, ObjectHolder<byte[]> oCertBuffer, StringHolder sHint)
sUrl
- passed in by the caller(Protocol), the url we are
connecting toaCertPassword
- the password to encode the certificate with. This
parameter will only be populated if the pCertBuffer
contains PKCS#12 data.nCertSize
- the size of the certificate buffer. This is only
populate if the pCertBuffer contains PKCS#12 data.oCertBuffer
- depending on the application, this parameter may be
populated with a buffer containing encrypted (using
the aCertPassword specified parameter 2 above)
PKCS#12 data, or PCCERT_CONTEXT (Windows specific)
data, as some Windows applications may only have
access to the Windows PCCERT_CONTEXT and not to a
PKCS#12 stream. It this parameter is populated with
a PCCERT_CONTEXT then the nCertSize parameter will
be set to zero and the aCertPassword will be empty.sHint
- this parameter is populated by the caller and used
as a hint so that the calling application knows
certificate they are working with when callback's
are made.public abstract boolean isCertificateAuthorityValid(String sUrl)
sUrl
- passed in by the caller(Protocol), the url we are connecting
topublic String getConnectionName()
public AuthenticationHandler.ConnectStatus getConnectStatus()
public AuthenticationHandler.HandlerType getHandlerType()
public String getHint()
public String getHost()
public CharacterHolder getPassword()
public String getRealm()
public String getSOAPAddress()
public AuthenticationHandler.AuthenticationType getSOAPAuthType()
public String getSOAPFaultCode()
public String getSOAPFaultString()
public String getSOAPOperation()
public AuthenticationHandler.SOAPRequestStatus getSOAPRequestStatus()
public String getURL()
public AuthenticationHandler.AuthenticationType getTransportAuthType()
public String getType()
public String getUserID()
public void logMessage(MsgFormatPos oError)
oError
- Error message to logpublic void reset()
public void setConnectionName(String sConnectionName)
sConnectionName
- The wsdl connection namepublic void setConnectStatus(AuthenticationHandler.ConnectStatus eStatus)
eStatus
- the status as an eConnectStatus enumeration valuepublic void setHandlerType(AuthenticationHandler.HandlerType eHandlerType)
eHandlerType
- an eHandlerType enumeration valuepublic void setHint(String sHint)
sHint
- the hint valuepublic void setHost(String sHost)
sHost
- the hostpublic void setPassword(CharacterHolder aPassword)
aPassword
- the passwordpublic void setRealm(String sRealm)
sRealm
- the realmpublic void setSOAPAddress(String sSOAPAddress)
sSOAPAddress
- the SOAP addresspublic void setSOAPAuthType(AuthenticationHandler.AuthenticationType eAuthType)
eAuthType
- the authentication type as an eAuthenticationType
enumeration valuepublic void setSOAPFaultCode(String sSOAPFaultCode)
sSOAPFaultCode
- the fault codepublic void setSOAPFaultString(String sSOAPFault)
sSOAPFault
- the fault stringpublic void setSOAPOperation(String sSOAPOperation)
sSOAPOperation
- the SOAP operation namepublic void setSOAPRequestStatus(AuthenticationHandler.SOAPRequestStatus eSOAPStatus)
eSOAPStatus
- the status as an eSOAPRequestStatus enumeration
valuepublic void setTransportAuthType(AuthenticationHandler.AuthenticationType eAuthType)
eAuthType
- an eAuthenticationType enumerated valuepublic void setType(String sType)
sType
- the typepublic void setURL(String sURL)
sURL
- the URLpublic void setUserID(String sUserID)
sUserID
- the user idCopyright © 2010 - 2020 Adobe. All Rights Reserved