|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectauthentication.SaslResponse
public class SaslResponse
This class creates the SASL response that is to be returned to the client. This includes adding the ResourceOffering for the discovery service and creating the assertion that allows the user to access this service.
Field Summary | |
---|---|
private static java.lang.String |
AUTH_METHOD_PASSWORD
|
private java.security.cert.X509Certificate |
cert
|
private static java.lang.String |
disco
|
private static java.lang.String |
ds
|
private javax.xml.soap.SOAPEnvelope |
env
|
private java.lang.String |
inResponseTo
|
private java.lang.String |
issuerid
|
private static java.lang.String |
keystoreFile
|
private javax.xml.soap.SOAPMessage |
message
|
private ResourceOffering |
offering
|
private java.security.PrivateKey |
privateKey
|
private static java.lang.String |
sa
|
private static java.lang.String |
saml
|
private static java.lang.String |
sb
|
private java.lang.String |
serverMech
|
static java.lang.String |
STATUS_ABORT
|
static java.lang.String |
STATUS_CONTINUE
|
static java.lang.String |
STATUS_OK
|
private java.lang.String |
statusCode
|
private static int |
TIME_TO_LIVE
|
Constructor Summary | |
---|---|
SaslResponse(java.lang.String inResponseTo,
java.lang.String statusCode,
java.lang.String serverMech,
ResourceOffering offering)
The SaslRequest constructor. |
Method Summary | |
---|---|
private void |
createBody()
When creating the body the method adds the status element and an element which holds the content of the response. |
private void |
createHeaders()
This method creates the header by adding all the required fields such as the correlation and timestamp. |
private void |
createSignature(javax.xml.soap.SOAPElement assertion)
This method signs an authentication assertion without the signature element and adds the signature to the assertion. |
private void |
createToken(javax.xml.soap.SOAPElement saslResponse)
This method creates an authentication assertion for the resource offering to the discovery service. |
javax.xml.soap.SOAPMessage |
getMessage()
|
private void |
setStatusFailed()
If the response encounters exceptions it will not be able to return a proper response. |
java.lang.String |
toString()
Returns a String representation of the SOAP message containing this response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STATUS_OK
public static final java.lang.String STATUS_ABORT
public static final java.lang.String STATUS_CONTINUE
private static final java.lang.String disco
private static final java.lang.String saml
private static final java.lang.String ds
private static final java.lang.String sa
private static final java.lang.String sb
private static final int TIME_TO_LIVE
private static final java.lang.String AUTH_METHOD_PASSWORD
private static final java.lang.String keystoreFile
private ResourceOffering offering
private java.lang.String inResponseTo
private javax.xml.soap.SOAPMessage message
private javax.xml.soap.SOAPEnvelope env
private java.lang.String statusCode
private java.security.cert.X509Certificate cert
private java.security.PrivateKey privateKey
private java.lang.String issuerid
private java.lang.String serverMech
Constructor Detail |
---|
public SaslResponse(java.lang.String inResponseTo, java.lang.String statusCode, java.lang.String serverMech, ResourceOffering offering)
inResponseTo
- String The message identifier of the request this SASL response
should respond to.statusCode
- String The status code of the response.serverMech
- String The SASL mechanism used to authenticate the user.offering
- ResourceOffering The resource offering for the discovery service.Method Detail |
---|
private void setStatusFailed()
private void createHeaders() throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
private void createBody() throws javax.xml.soap.SOAPException, java.security.GeneralSecurityException
javax.xml.soap.SOAPException
java.security.GeneralSecurityException
private void createToken(javax.xml.soap.SOAPElement saslResponse) throws javax.xml.soap.SOAPException, java.security.GeneralSecurityException
javax.xml.soap.SOAPException
java.security.GeneralSecurityException
private void createSignature(javax.xml.soap.SOAPElement assertion) throws javax.xml.soap.SOAPException, java.security.GeneralSecurityException
javax.xml.soap.SOAPException
java.security.GeneralSecurityException
public javax.xml.soap.SOAPMessage getMessage()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |