public class InfoboxTokenImpl extends Object implements InfoboxToken
InfoboxToken| Constructor and Description |
|---|
InfoboxTokenImpl(String key,
boolean primary,
Element xmlToken)
Sets an XML infobox token.
|
InfoboxTokenImpl(String key,
boolean primary,
String base64Token)
Sets a base64 encoded infobox token.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBase64Token()
Returns the infobox token.
|
String |
getKey()
The key of the corresponding infobox.
|
Element |
getXMLToken()
Returns the infobox token.
|
boolean |
isPrimary()
Specifies if this token is the first token (e.g in an array of tokens) included in an
InfoboxReadResponse. |
void |
setBase64Token(String base64Token)
Sets the base64 encoded token.
|
void |
setKey(String key)
Sets the key of the infobox token.
|
void |
setPrimary(boolean primary)
Specifies whether this token is the primary (e.g. first in an array) token.
|
void |
setXmlToken(Element xmlToken)
Sets the infobox token.
|
public InfoboxTokenImpl(String key, boolean primary, Element xmlToken)
key - The key of the infobox token.primary - True this token is the primary (e.g .first in an array)
token, otherwise falsexmlToken - The infobox token.public InfoboxTokenImpl(String key, boolean primary, String base64Token)
key - The key of the infobox token.primary - True this token is the primary (e.g .first in an array)
token, otherwise falsebase64Token - The base64 encoded infobox token.public String getKey()
InfoboxTokenKey attribute of the <Pair> child
element in an <AssocArrayData> content of an InfoboxReadResponse.
Maybe null if the InfoboxReadResponse conatains BinaryFileData.getKey in interface InfoboxTokenInfoboxToken.getKey()public boolean isPrimary()
InfoboxTokenInfoboxReadResponse. If true this token is the token to be
validated by a corresponding
InfoboxValidator.
If false this token maybe needed to validate the primary token.isPrimary in interface InfoboxTokenTrue if this token is the first token.InfoboxToken.isPrimary()public Element getXMLToken()
InfoboxTokennull if the token is returned by method InfoboxToken.getBase64Token()
as base64 encoded string.
not validated against the
application specific schema (e.g. Mandates schema in the mandates context).
Thus the validating application has to validate the token
against the appropriate schema.getXMLToken in interface InfoboxTokennull the token is returned by method
InfoboxToken.getBase64Token() as base64 encoded string.InfoboxToken.getXMLToken()public String getBase64Token()
InfoboxTokennull if the token is returned by method InfoboxToken.getXMLToken()
as a DOM element.
getBase64Token in interface InfoboxTokennull the token is returned by method
InfoboxToken.getBase64Token() as base64 encoded string.InfoboxToken.getBase64Token()public void setKey(String key)
key - The key of the infobox token.public void setPrimary(boolean primary)
primary - True this token is the primary (e.g .first in an array)
token, otherwise false.public void setBase64Token(String base64Token)
base64Token - The base64 encoded token.public void setXmlToken(Element xmlToken)
xmlToken - The infobox token.Copyright © 2017. All rights reserved.