Class BinarySecurity
- java.lang.Object
-
- org.apache.ws.security.message.token.BinarySecurity
-
- Direct Known Subclasses:
PKIPathSecurity,X509Security
public class BinarySecurity extends java.lang.ObjectBinary Security Token.- Author:
- Davanum Srinivas (dims@yahoo.com)., Werner Dittmann (Werner.Dittmann@t-onile.de).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBASE64_ENCODINGprotected org.w3c.dom.Elementelementstatic javax.xml.namespace.QNameTOKEN_BSTstatic javax.xml.namespace.QNameTOKEN_KI
-
Constructor Summary
Constructors Constructor Description BinarySecurity(org.w3c.dom.Document doc)Constructor.BinarySecurity(org.w3c.dom.Element elem)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.ElementgetElement()return the dom element.java.lang.StringgetEncodingType()get the encoding type.protected org.w3c.dom.TextgetFirstNode()return the first text node.java.lang.StringgetID()get the id.byte[]getToken()get the byte array containing token information.java.lang.StringgetValueType()get the value type.protected voidsetEncodingType(java.lang.String encoding)set the encoding type.voidsetID(java.lang.String id)set the id.protected voidsetToken(byte[] data)set the token information.protected voidsetValueType(java.lang.String type)set the value type.java.lang.StringtoString()return the string representation of the token.
-
-
-
Field Detail
-
TOKEN_BST
public static final javax.xml.namespace.QName TOKEN_BST
-
TOKEN_KI
public static final javax.xml.namespace.QName TOKEN_KI
-
BASE64_ENCODING
public static final java.lang.String BASE64_ENCODING
- See Also:
- Constant Field Values
-
element
protected org.w3c.dom.Element element
-
-
Constructor Detail
-
BinarySecurity
public BinarySecurity(org.w3c.dom.Element elem) throws WSSecurityExceptionConstructor.- Parameters:
elem-- Throws:
WSSecurityException
-
BinarySecurity
public BinarySecurity(org.w3c.dom.Document doc)
Constructor.- Parameters:
doc-
-
-
Method Detail
-
getValueType
public java.lang.String getValueType()
get the value type.- Returns:
- TODO
-
setValueType
protected void setValueType(java.lang.String type)
set the value type.- Parameters:
type-
-
getEncodingType
public java.lang.String getEncodingType()
get the encoding type.- Returns:
- TODO
-
setEncodingType
protected void setEncodingType(java.lang.String encoding)
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
protected org.w3c.dom.Text getFirstNode()
return the first text node.- Returns:
- TODO
-
getElement
public org.w3c.dom.Element getElement()
return the dom element.- Returns:
- TODO
-
getID
public java.lang.String getID()
get the id.- Returns:
- TODO
-
setID
public void setID(java.lang.String id)
set the id.- Parameters:
id-
-
toString
public java.lang.String toString()
return the string representation of the token.- Overrides:
toStringin classjava.lang.Object- Returns:
- TODO
-
-