|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.liberty.ws.authnsvc.protocol.SASLResponse
public class SASLResponse
The SASLResponse
class represents SASLResponse
element defined in Authentication Service schema.
Field Summary | |
---|---|
static String |
ABORT
Abort status where the server is aborting the authentication exchange. |
static String |
CONTINUE
Continue status where the server expects the client to send another SASLRequest |
static String |
OK
OK status where the server considers the authentication exchange to have successfully completed. |
Constructor Summary | |
---|---|
SASLResponse(Element element)
Constructs a SASLResponse with a
org.w3c.dom.Element . |
|
SASLResponse(String statusCode)
Constructs a SASLResponse instance. |
Method Summary | |
---|---|
List |
getCredentials()
Returns a list of child Element of 'Credentials' Element. |
byte[] |
getData()
Returns value of Element 'Data'. |
String |
getId()
Returns value of id attribute. |
String |
getMessageID()
Returns value of messageID attribute of
CorrelationHeader . |
PasswordTransforms |
getPasswordTransforms()
Returns child Element 'PasswordTransforms'. |
String |
getRefToMessageID()
Returns value of refToMessageID attribute of
CorrelationHeader . |
ResourceOffering |
getResourceOffering()
Returns Element ResourceOffering . |
String |
getServerMechanism()
Returns value of serverMechanism attribute. |
String |
getStatusCode()
Returns value of attribute 'code' of Element 'Status'. |
void |
setCredentials(List credentials)
Sets a list of child Elements of 'Credentials' Element. |
void |
setData(byte[] data)
Sets value of Element 'Data'. |
void |
setId(String id)
Sets value of id attribute. |
void |
setMessageID(String messageID)
Sets value of messageID attribute of
CorrelationHeader . |
void |
setPasswordTransforms(PasswordTransforms passwordTransforms)
Sets child Element 'PasswordTransforms' |
void |
setRefToMessageID(String refToMessageID)
Sets value of refToMessageID attribute of
CorrelationHeader . |
void |
setResourceOffering(ResourceOffering resourceOffering)
Sets Element ResourceOffering . |
void |
setServerMechanism(String serverMechanism)
Sets value of mechanism attribute. |
void |
setStatusCode(String statusCode)
Sets value of attribute 'code' of Element 'Status'. |
Element |
toElement()
Returns SASLResponse in org.w3c.dom.Element
format. |
Field Detail |
---|
public static final String CONTINUE
SASLRequest
public static final String ABORT
public static final String OK
Constructor Detail |
---|
public SASLResponse(String statusCode)
SASLResponse
instance.
statusCode
- Status Code.public SASLResponse(Element element) throws AuthnSvcException
SASLResponse
with a
org.w3c.dom.Element
.
element
- a SASLResponse
element
AuthnSvcException
- if an error occurs while parsing the
SASLResponse
elementMethod Detail |
---|
public String getStatusCode()
SASLResponse.setStatusCode(String)
public PasswordTransforms getPasswordTransforms()
SASLResponse.setPasswordTransforms(PasswordTransforms)
public byte[] getData()
SASLResponse.setData(byte[])
public ResourceOffering getResourceOffering()
ResourceOffering
.
ResourceOffering
.SASLResponse.setResourceOffering(ResourceOffering)
public List getCredentials()
SASLResponse.setCredentials(List)
public String getServerMechanism()
serverMechanism
attribute.
serverMechanism
attributeSASLResponse.setServerMechanism(String)
public String getId()
id
attribute.
id
attributeSASLResponse.setId(String)
public String getMessageID()
messageID
attribute of
CorrelationHeader
.
messageID
attributeSASLResponse.setMessageID(String)
public String getRefToMessageID()
refToMessageID
attribute of
CorrelationHeader
.
refToMessageID
attributeSASLResponse.setRefToMessageID(String)
public void setStatusCode(String statusCode)
statusCode
- value of attribute 'code' of Element 'Status'SASLResponse.getStatusCode()
public void setPasswordTransforms(PasswordTransforms passwordTransforms)
passwordTransforms
- Element 'PasswordTransforms'SASLResponse.getPasswordTransforms()
public void setData(byte[] data)
data
- value of Element 'Data'SASLResponse.getData()
public void setResourceOffering(ResourceOffering resourceOffering)
ResourceOffering
.
resourceOffering
- Element ResourceOffering
SASLResponse.getResourceOffering()
public void setCredentials(List credentials)
credentials
- a list of child Elements of 'Credentials' ElementSASLResponse.getCredentials()
public void setServerMechanism(String serverMechanism)
mechanism
attribute.
serverMechanism
- value of mechanism
attributeSASLResponse.getServerMechanism()
public void setId(String id)
id
attribute.
id
- value of id
attributeSASLResponse.getId()
public void setMessageID(String messageID)
messageID
attribute of
CorrelationHeader
.
messageID
- value of messageID
attributeSASLResponse.getMessageID()
public void setRefToMessageID(String refToMessageID)
refToMessageID
attribute of
CorrelationHeader
.
refToMessageID
- value of refToMessageID
attributeSASLResponse.getRefToMessageID()
public Element toElement() throws AuthnSvcException
SASLResponse
in org.w3c.dom.Element
format.
SASLResponse
in org.w3c.dom.Element
format.
AuthnSvcException
- if an error occurs while creating the
SASLResponse
element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |