public class BinarySecurity extends Object
Modifier and Type | Field and Description |
---|---|
static QName |
TOKEN_BST |
static QName |
TOKEN_KI |
Constructor and Description |
---|
BinarySecurity(CallbackHandler callbackHandler)
Create a BinarySecurityToken via a CallbackHandler
|
BinarySecurity(Document doc)
Constructor.
|
BinarySecurity(Element elem,
BSPEnforcer bspEnforcer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addWSSENamespace()
Add the WSSE Namespace to this BST.
|
void |
addWSUNamespace()
Add the WSU Namespace to this BST.
|
void |
encodeRawToken()
BASE64-Encode the raw token bytes + store them in a text child node.
|
boolean |
equals(Object object) |
CallbackHandler |
getAttachmentCallbackHandler() |
Element |
getElement()
return the dom element.
|
String |
getEncodingType()
get the encoding type.
|
String |
getID()
get the id.
|
byte[] |
getToken()
get the byte array containing token information.
|
String |
getValueType()
get the value type.
|
int |
hashCode() |
boolean |
isStoreBytesInAttachment() |
void |
setAttachmentCallbackHandler(CallbackHandler attachmentCallbackHandler) |
void |
setEncodingType(String encoding)
set the encoding type.
|
void |
setID(String id)
set the id.
|
void |
setRawToken(byte[] data)
Set the raw token data, without Base-64 encoding it into the Element.
|
void |
setStoreBytesInAttachment(boolean storeBytesInAttachment) |
void |
setToken(byte[] data)
set the token information.
|
void |
setValueType(String type)
set the value type.
|
String |
toString()
return the string representation of the token.
|
public static final QName TOKEN_BST
public static final QName TOKEN_KI
public BinarySecurity(Element elem, BSPEnforcer bspEnforcer) throws WSSecurityException
elem
- The BinarySecurityToken element to processbspEnforcer
- a BSPEnforcer instance to enforce BSP rulesWSSecurityException
public BinarySecurity(Document doc)
doc
- public BinarySecurity(CallbackHandler callbackHandler) throws WSSecurityException
callbackHandler
- WSSecurityException
public CallbackHandler getAttachmentCallbackHandler()
public void setAttachmentCallbackHandler(CallbackHandler attachmentCallbackHandler)
public void addWSSENamespace()
public void addWSUNamespace()
public String getValueType()
public void setValueType(String type)
type
- public String getEncodingType()
public void setEncodingType(String encoding)
encoding
- public byte[] getToken()
public void setToken(byte[] data) throws WSSecurityException
data
- WSSecurityException
public void setRawToken(byte[] data)
public void encodeRawToken()
public Element getElement()
public String getID()
public void setID(String id)
id
- public String toString()
public boolean isStoreBytesInAttachment()
public void setStoreBytesInAttachment(boolean storeBytesInAttachment)
Copyright © 2019 JBoss by Red Hat. All rights reserved.