InfoboxToken
public class InfoboxTokenImpl extends Object implements InfoboxToken
InfoboxToken
Constructor | Description |
---|---|
InfoboxTokenImpl(String key,
boolean primary,
String base64Token) |
Sets a base64 encoded infobox token.
|
InfoboxTokenImpl(String key,
boolean primary,
Element xmlToken) |
Sets an XML infobox token.
|
Modifier and Type | Method | 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 false
xmlToken
- 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 false
base64Token
- The base64 encoded infobox token.public String getKey()
InfoboxToken
Key
attribute of the <Pair>
child
element in an <AssocArrayData>
content of an InfoboxReadResponse.
Maybe null
if the InfoboxReadResponse conatains BinaryFileData
.getKey
in interface InfoboxToken
InfoboxToken.getKey()
public boolean isPrimary()
InfoboxToken
InfoboxReadResponse
. 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 InfoboxToken
True
if this token is the first token.InfoboxToken.isPrimary()
public Element getXMLToken()
InfoboxToken
null
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 InfoboxToken
null
the token is returned by method
InfoboxToken.getBase64Token()
as base64 encoded string.InfoboxToken.getXMLToken()
public String getBase64Token()
InfoboxToken
null
if the token is returned by method InfoboxToken.getXMLToken()
as a DOM element.
getBase64Token
in interface InfoboxToken
null
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 © 2019. All rights reserved.