com.sun.identity.liberty.ws.authnsvc.protocol
クラス SASLResponse

java.lang.Object
  上位を拡張 com.sun.identity.liberty.ws.authnsvc.protocol.SASLResponse

public class SASLResponse
extends Object

The SASLResponse class represents SASLResponse element defined in Authentication Service schema.


フィールドの概要
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.
 
コンストラクタの概要
SASLResponse(Element element)
          Constructs a SASLResponse with a org.w3c.dom.Element.
SASLResponse(String statusCode)
          Constructs a SASLResponse instance.
 
メソッドの概要
 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.
 

フィールドの詳細

CONTINUE

public static final String CONTINUE
Continue status where the server expects the client to send another SASLRequest

関連項目:
定数フィールド値

ABORT

public static final String ABORT
Abort status where the server is aborting the authentication exchange.

関連項目:
定数フィールド値

OK

public static final String OK
OK status where the server considers the authentication exchange to have successfully completed.

関連項目:
定数フィールド値
コンストラクタの詳細

SASLResponse

public SASLResponse(String statusCode)
Constructs a SASLResponse instance.

パラメータ:
statusCode - Status Code.

SASLResponse

public SASLResponse(Element element)
             throws AuthnSvcException
Constructs a SASLResponse with a org.w3c.dom.Element.

パラメータ:
element - a SASLResponse element
例外:
AuthnSvcException - if an error occurs while parsing the SASLResponse element
メソッドの詳細

getStatusCode

public String getStatusCode()
Returns value of attribute 'code' of Element 'Status'.

戻り値:
value of attribute 'code' of Element 'Status'
関連項目:
SASLResponse.setStatusCode(String)

getPasswordTransforms

public PasswordTransforms getPasswordTransforms()
Returns child Element 'PasswordTransforms'.

戻り値:
child Element 'PasswordTransforms'
関連項目:
SASLResponse.setPasswordTransforms(PasswordTransforms)

getData

public byte[] getData()
Returns value of Element 'Data'.

戻り値:
value of Element 'Data'
関連項目:
SASLResponse.setData(byte[])

getResourceOffering

public ResourceOffering getResourceOffering()
Returns Element ResourceOffering.

戻り値:
Element ResourceOffering.
関連項目:
SASLResponse.setResourceOffering(ResourceOffering)

getCredentials

public List getCredentials()
Returns a list of child Element of 'Credentials' Element.

戻り値:
a list of child Element of 'Credentials' Element
関連項目:
SASLResponse.setCredentials(List)

getServerMechanism

public String getServerMechanism()
Returns value of serverMechanism attribute.

戻り値:
value of serverMechanism attribute
関連項目:
SASLResponse.setServerMechanism(String)

getId

public String getId()
Returns value of id attribute.

戻り値:
value of id attribute
関連項目:
SASLResponse.setId(String)

getMessageID

public String getMessageID()
Returns value of messageID attribute of CorrelationHeader.

戻り値:
value of messageID attribute
関連項目:
SASLResponse.setMessageID(String)

getRefToMessageID

public String getRefToMessageID()
Returns value of refToMessageID attribute of CorrelationHeader.

戻り値:
value of refToMessageID attribute
関連項目:
SASLResponse.setRefToMessageID(String)

setStatusCode

public void setStatusCode(String statusCode)
Sets value of attribute 'code' of Element 'Status'.

パラメータ:
statusCode - value of attribute 'code' of Element 'Status'
関連項目:
SASLResponse.getStatusCode()

setPasswordTransforms

public void setPasswordTransforms(PasswordTransforms passwordTransforms)
Sets child Element 'PasswordTransforms'

パラメータ:
passwordTransforms - Element 'PasswordTransforms'
関連項目:
SASLResponse.getPasswordTransforms()

setData

public void setData(byte[] data)
Sets value of Element 'Data'.

パラメータ:
data - value of Element 'Data'
関連項目:
SASLResponse.getData()

setResourceOffering

public void setResourceOffering(ResourceOffering resourceOffering)
Sets Element ResourceOffering.

パラメータ:
resourceOffering - Element ResourceOffering
関連項目:
SASLResponse.getResourceOffering()

setCredentials

public void setCredentials(List credentials)
Sets a list of child Elements of 'Credentials' Element.

パラメータ:
credentials - a list of child Elements of 'Credentials' Element
関連項目:
SASLResponse.getCredentials()

setServerMechanism

public void setServerMechanism(String serverMechanism)
Sets value of mechanism attribute.

パラメータ:
serverMechanism - value of mechanism attribute
関連項目:
SASLResponse.getServerMechanism()

setId

public void setId(String id)
Sets value of id attribute.

パラメータ:
id - value of id attribute
関連項目:
SASLResponse.getId()

setMessageID

public void setMessageID(String messageID)
Sets value of messageID attribute of CorrelationHeader.

パラメータ:
messageID - value of messageID attribute
関連項目:
SASLResponse.getMessageID()

setRefToMessageID

public void setRefToMessageID(String refToMessageID)
Sets value of refToMessageID attribute of CorrelationHeader.

パラメータ:
refToMessageID - value of refToMessageID attribute
関連項目:
SASLResponse.getRefToMessageID()

toElement

public Element toElement()
                  throws AuthnSvcException
Returns SASLResponse in org.w3c.dom.Element format.

戻り値:
SASLResponse in org.w3c.dom.Element format.
例外:
AuthnSvcException - if an error occurs while creating the SASLResponse element