Class BinarySecurity
java.lang.Object
org.apache.ws.security.message.token.BinarySecurity
- Direct Known Subclasses:
PKIPathSecurity
,X509Security
Binary Security Token.
- Author:
- Davanum Srinivas (dims@yahoo.com)., Werner Dittmann (Werner.Dittmann@t-onile.de).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBinarySecurity
(Document doc) Constructor.BinarySecurity
(Element elem) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionreturn the dom element.get the encoding type.protected Text
return the first text node.getID()
get the id.byte[]
getToken()
get the byte array containing token information.get the value type.protected void
setEncodingType
(String encoding) set the encoding type.void
set the id.protected void
setToken
(byte[] data) set the token information.protected void
setValueType
(String type) set the value type.toString()
return the string representation of the token.
-
Field Details
-
TOKEN_BST
-
TOKEN_KI
-
BASE64_ENCODING
- See Also:
-
element
-
-
Constructor Details
-
BinarySecurity
Constructor.- Parameters:
elem
-- Throws:
WSSecurityException
-
BinarySecurity
Constructor.- Parameters:
doc
-
-
-
Method Details
-
getValueType
get the value type.- Returns:
- TODO
-
setValueType
set the value type.- Parameters:
type
-
-
getEncodingType
get the encoding type.- Returns:
- TODO
-
setEncodingType
set the encoding type.- Parameters:
encoding
-
-
getToken
public byte[] getToken()get the byte array containing token information.- Returns:
- TODO
-
setToken
protected void setToken(byte[] data) set the token information.- Parameters:
data
-
-
getFirstNode
return the first text node.- Returns:
- TODO
-
getElement
return the dom element.- Returns:
- TODO
-
getID
get the id.- Returns:
- TODO
-
setID
set the id.- Parameters:
id
-
-
toString
return the string representation of the token.
-