public class BIDSessionData extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
MIMETYPE_BID_XML |
static String |
MIMETYPE_PDF |
static String |
MIMETYPE_TXT_PLAIN |
Constructor and Description |
---|
BIDSessionData() |
BIDSessionData(String traceID)
Creates a BIDSessionData object based on the traceID from initSession.
|
Modifier and Type | Method and Description |
---|---|
void |
addDocument(DocumentToSign document)
Adds an already populated document to sign.
|
void |
addPDFDocument(byte[] dataBytesToBeSigned,
String description)
Adding a PDF document to be signed.
|
void |
addTextDocument(String dataToBeSigned,
String description)
Adding a text document to be signed.
|
void |
addXMLDocument(String xmlDataToBeSigned,
String xslDataToBeSigned,
String description)
Adds an XML document to sign.
|
List<String> |
getAdditionalInfoList()
This method is used by the BankIDServer internally.
|
AdditionalInformation |
getAdditionalInformation() |
String |
getBank()
This method is used by the BankIDServer internally.
|
String |
getCarrier()
This method is used by the BankIDServer internally.
|
CertificateStatus |
getCertificateStatus()
This method returns a CertificateStatus object.
|
String |
getClientChallenge()
This method is used by the BankIDServer internally.
|
String |
getClientIP()
This method can be used to get the IP address of the client.
|
String |
getClientOCSP()
This method returns the client OCSP response
The method must be used during the process of creating an
SEID_SDO |
byte[] |
getClientOCSPBytes()
This method returns the client OCSP response
The method must be used during the process of creating an
SEID_SDO |
String |
getClientSignature()
This method returns the client signature
The method must be used during the process of creating an
SEID_SDO |
byte[] |
getClientSignatureBytes()
This method returns the client signature
The method must be used during the process of creating an
SEID_SDO |
CMSFormat |
getCmsFormat()
This method is used by the BankIDServer internally.
|
byte[] |
getDataBytesToBeSigned()
This method is used by the BankIDServer internally.
|
String |
getDataDescription()
This method is used by the BankIDServer internally.
|
String |
getDataToBeSigned()
This method is used by the BankIDServer internally.
|
String |
getDataToBeSignedMimeType()
This method is used by the BankIDServer internally.
|
String |
getDataToBeSignedXMLFormat()
This method is used by the BankIDServer internally.
|
List<DocumentToSign> |
getDocuments() |
String |
getErrCode()
This method is used to get the errorCode if something goes wrong.
|
String |
getExtPDFUrl() |
String |
getInitRequest()
This method can be used for debug/logging.
|
String |
getInitResponse()
This method can be used for debug/logging.
|
String |
getMerchantOCSP()
This method returns the merchant OCSP response
The method must be used during the process of creating an
SEID_SDO |
byte[] |
getMerchantOCSPBytes()
This method returns the merchant OCSP response
The method must be used during the process of creating an
SEID_SDO |
String |
getMerchantSignature()
This method returns the merchant signature
The method must be used during the process of creating an
SEID_SDO |
byte[] |
getMerchantSignatureBytes()
This method returns the merchant signature
The method must be used during the process of creating an
SEID_SDO |
String |
getNextURL()
This method is used by the BankIDServer internally.
|
OCSPFormat |
getOcspFormat()
This method is used by the BankIDServer internally.
|
String |
getOtpServiceName()
This method is used by the BankIDServer internally.
|
Map<String,String> |
getRawTransactionInfo()
Returns the Map containing the rawTransactionInfo elements
received from the client.
|
String |
getRawTransactionInfoItem(String key)
Returns the value for the given key
|
no.bbs.bankid.seid.sdo.components.SEID_SDO |
getSdo()
This method is used by the BankIDServer internally.
|
SecureChannelInfo |
getSecureChannelInfo()
This method is used by the BankIDServer internally.
|
String |
getServerChallenge()
This method is used by the BankIDServer internally.
|
SecretKey |
getSessionKey()
This method is used by the BankIDServer internally.
|
byte[] |
getSignedDataBytes()
This method returns the signed data bytes
|
String |
getSigners()
This method is used by the BankIDServer internally
Used to get the signers to be returned to the client
|
String |
getTarget()
This method is used by the BankIDServer internaly
Used to get the target to be returned to the client
|
String |
getUserID()
This method is used by the BankIDServer internally.
|
String |
getUserIDKeystrokeData()
This method is used by the BankIDServer internally.
|
String |
getVerifyRequest()
This method can be used for debug/logging.
|
String |
getVerifyResponse()
This method can be used for debug/logging.
|
boolean |
isTraceIDEqual(String traceID)
Checks if the traceID is equal to the one received from initSession
|
void |
setAdditionalInfoList(List<String> additionalInfoList)
This method can be used by the merchant to set a List of additional info wanted from the VA.
|
void |
setAdditionalInformation(AdditionalInformation additionalInformation) |
void |
setBank(String bank)
This method can be used to set the userprofile bank parameter.
|
void |
setCarrier(String carrier)
This method is used by the BankIDServer internally.
|
void |
setCertificateStatus(CertificateStatus certificateStatus)
This method is used by the BankIDServer internally.
|
void |
setClientChallenge(String clientChallenge)
This method is used by the BankIDServer internally.
|
void |
setClientIP(String clientIP)
This method is used by the BankIDServer internally.
|
void |
setClientOCSP(String clientOCSP)
This method is used by the BankIDServer internally.
|
void |
setClientSignature(String clientSignature)
This method is used by the BankIDServer internally
Used to set the clients signature
|
void |
setCmsFormat(CMSFormat cmsFormat)
Used to set the CMS format
|
void |
setDataBytesToBeSigned(byte[] dataBytesToBeSigned)
This method is used to set the dataBytes (PDF data) to be signed during a signing process.
|
void |
setDataDescription(String dataDescription)
This method is used by the merchant to add the dataDescription during the signing process.
|
void |
setDataToBeSigned(String dataToBeSigned)
This method is used to set the data to be signed during a signing process.
|
void |
setDataToBeSignedMimeType(String dataToBeSignedMimeType)
This method is used by the merchant to set the MimeType of the data to be signed.
|
void |
setDataToBeSignedXMLFormat(String dataToBeSignedXMLFormat)
This method is used during text/BIDXML signing only.
|
void |
setErrCode(String errCode)
This method can be used to set an errorCode in the response to the client if something fails in the merchant
application.
|
void |
setExtPDFUrl(String extPDFUrl) |
void |
setInitRequest(String initRequest)
This method is used by the BankIDServer internally.
|
void |
setInitResponse(String initResponse)
This method is used by the BankIDServer internally.
|
void |
setMerchantOCSP(String merchantOCSP)
This method is used by the BankIDServer internally.
|
void |
setMerchantSignature(String merchantSignature)
This method is used by the BankIDServer internally
Used to set the merchants signature
|
void |
setNextURL(String nextURL)
Used to set the nextURL
|
void |
setOcspFormat(OCSPFormat ocspFormat)
Used to set the OCSP format
|
void |
setOtpServiceName(String otpServiceName)
This method can be used to set the userprofile otpServiceName parameter.
|
void |
setPDFSignData(byte[] pdfBytes,
String dataDescription)
This method can be used to set the data to be signed when signing PDF documents
|
void |
setRawTransactionInfo(Map<String,String> rawTransactionInfo)
This method is used by the BankIDServer internally.
|
void |
setSdo(no.bbs.bankid.seid.sdo.components.SEID_SDO sdo)
Used to set the SEID_SDO for sending to the client
|
void |
setSecureChannelInfo(SecureChannelInfo secureChannelInfo)
This method is used by the merchant to set a
SecureChannelInfo object. |
void |
setServerChallenge(String serverChallenge)
This method is used by the BankIDServer internally.
|
void |
setSessionKey(SecretKey sessionKey)
This method is used by the BankIDServer internally.
|
void |
setSignData(String text,
String dataDescription)
This method can be used to set the data to be signed when signing plain text documents
|
void |
setSignedDataBytes(byte[] signedData)
This method is used by the BankIDServer internally.
|
void |
setSigners(String signers)
This method is used by the merchant to set the list of signers to be sent to the client.
|
void |
setTarget(String target)
This method is used by the merchant to set what target frame it would like the nextURL to appare in.
|
void |
setUserID(String userID)
This method can be used to set the userprofile userID.
|
void |
setUserIDKeystrokeData(String userIDKeystrokeData)
This method can be used to set the userIDKeystrokeData.
|
void |
setVerifyRequest(String verifyRequest)
This method is used by the BankIDServer internally.
|
void |
setVerifyResponse(String verifyResponse)
This method is used by the BankIDServer internally.
|
void |
setXMLSignData(String xml,
String xsl,
String dataDescription)
This method can be used to set the data to be signed when signing XML documents
|
public static final String MIMETYPE_PDF
public static final String MIMETYPE_BID_XML
public static final String MIMETYPE_TXT_PLAIN
public BIDSessionData()
public BIDSessionData(String traceID)
traceID
- The traceID in the response from initSession()public byte[] getSignedDataBytes()
public void setSignedDataBytes(byte[] signedData)
signedData
- byte[] The signed data.public String getNextURL()
public void setNextURL(String nextURL)
nextURL
- The nextURL Stringpublic String getClientIP()
public void setClientIP(String clientIP)
clientIP
- The clientIP Stringpublic SecretKey getSessionKey()
public void setSessionKey(SecretKey sessionKey)
sessionKey
- SecretKey The sessionKeypublic no.bbs.bankid.seid.sdo.components.SEID_SDO getSdo()
public void setSdo(no.bbs.bankid.seid.sdo.components.SEID_SDO sdo)
sdo
- SEID_SDO The SEID_SDOpublic String getInitRequest()
public void setInitRequest(String initRequest)
initRequest
- The initRequest Stringpublic String getInitResponse()
public void setInitResponse(String initResponse)
initResponse
- The initResponse Stringpublic String getVerifyRequest()
public void setVerifyRequest(String verifyRequest)
verifyRequest
- The verifyRequest Stringpublic String getVerifyResponse()
public void setVerifyResponse(String verifyResponse)
verifyResponse
- The verifyResponse Stringpublic String getUserID()
public void setUserID(String userID)
userID
- the userID String.public String getBank()
public void setBank(String bank)
bank
- The bank String.public String getOtpServiceName()
public void setOtpServiceName(String otpServiceName)
otpServiceName
- The otpServiceName String.public String getClientChallenge()
public void setClientChallenge(String clientChallenge)
clientChallenge
- The clientChallenge Stringpublic String getDataToBeSigned()
public void setDataToBeSigned(String dataToBeSigned)
dataToBeSigned
- The dataToBeSigned Stringpublic String getDataToBeSignedXMLFormat()
public void setDataToBeSignedXMLFormat(String dataToBeSignedXMLFormat)
dataToBeSignedXMLFormat
- The dataToBeSignedXMLFormat Stringpublic SecureChannelInfo getSecureChannelInfo()
SecureChannelInfo
The secureChannelInfo object.public void setSecureChannelInfo(SecureChannelInfo secureChannelInfo)
SecureChannelInfo
object.
If the value is null
the BankID Server will create a secureChannelInfo object with default values.secureChannelInfo
- SecureChannelInfo
The secureChannelInfo object.public String getDataDescription()
String
The dataDescription.public void setDataDescription(String dataDescription)
dataDescription
- The dataDescription String.public String getServerChallenge()
public void setServerChallenge(String serverChallenge)
serverChallenge
- The serverChallenge String.public List<String> getAdditionalInfoList()
public void setAdditionalInfoList(List<String> additionalInfoList)
additionalInfoList
- The additionalInfoList List.public CertificateStatus getCertificateStatus()
CertificateStatus
The CertificateStatus object.public void setCertificateStatus(CertificateStatus certificateStatus)
certificateStatus
- CertificateStatus
The CertificateStatus object.public String getErrCode()
public void setErrCode(String errCode)
errCode
- The errCode Stringpublic String getMerchantOCSP()
SEID_SDO
public void setMerchantOCSP(String merchantOCSP)
merchantOCSP
- The merchantOCSP Stringpublic String getClientOCSP()
SEID_SDO
public void setClientOCSP(String clientOCSP)
clientOCSP
- The clientOCSP Stringpublic String getMerchantSignature()
SEID_SDO
public void setMerchantSignature(String merchantSignature)
merchantSignature
- The merchantSignature.public String getClientSignature()
SEID_SDO
public void setClientSignature(String clientSignature)
clientSignature
- The clientSignature String.public String getDataToBeSignedMimeType()
public void setDataToBeSignedMimeType(String dataToBeSignedMimeType) throws BIDException
dataToBeSignedMimeType
- The dataToBeSignedMimeType StringBIDException
- If dataToBeSignedMimeType is set to null
or an unsupported MimeTypepublic String getTarget()
public void setTarget(String target)
target
- The target.public byte[] getMerchantSignatureBytes()
SEID_SDO
public byte[] getClientSignatureBytes()
SEID_SDO
public byte[] getMerchantOCSPBytes()
SEID_SDO
public byte[] getClientOCSPBytes()
SEID_SDO
public String getSigners()
public void setSigners(String signers)
signers
- The "signers" String received from the BIFFacade.getSigners(), BIDFacade.dynamicSDOGetSigners() or
BIDFacade.dynamicSDOXMLGetSigners() calls.public byte[] getDataBytesToBeSigned()
public void setDataBytesToBeSigned(byte[] dataBytesToBeSigned)
dataBytesToBeSigned
- The dataBytesToBeSignedpublic void setPDFSignData(byte[] pdfBytes, String dataDescription) throws BIDException
pdfBytes
- The actual PDFdataDescription
- The description of the data to be signedBIDException
- if something failspublic void setXMLSignData(String xml, String xsl, String dataDescription) throws BIDException
xml
- The actual xmlxsl
- The actual xsldataDescription
- The description of the data to be signedBIDException
- if something failspublic void setSignData(String text, String dataDescription) throws BIDException
text
- The actual text to be signeddataDescription
- The description of the data to be signedBIDException
- if something failspublic String getUserIDKeystrokeData()
public void setUserIDKeystrokeData(String userIDKeystrokeData)
userIDKeystrokeData
- String the userIDKeystrokeData.public boolean isTraceIDEqual(String traceID)
traceID
- The incoming traceIDpublic String getCarrier()
public void setCarrier(String carrier)
carrier
- public void addPDFDocument(byte[] dataBytesToBeSigned, String description)
dataBytesToBeSigned
- byte[] containing the bytes to be signeddescription
- A description of the document to be signedpublic void addTextDocument(String dataToBeSigned, String description)
dataToBeSigned
- Data String to be signeddescription
- A description of the document to be signedpublic void addXMLDocument(String xmlDataToBeSigned, String xslDataToBeSigned, String description)
xmlDataToBeSigned
- xslDataToBeSigned
- description
- public void addDocument(DocumentToSign document)
document
- public List<DocumentToSign> getDocuments()
public void setRawTransactionInfo(Map<String,String> rawTransactionInfo)
rawTransactionInfo
- public Map<String,String> getRawTransactionInfo()
public String getRawTransactionInfoItem(String key)
key
- public String getExtPDFUrl()
public void setExtPDFUrl(String extPDFUrl)
public AdditionalInformation getAdditionalInformation()
public void setAdditionalInformation(AdditionalInformation additionalInformation)
public void setCmsFormat(CMSFormat cmsFormat)
cmsFormat
- The CMSFormatpublic void setOcspFormat(OCSPFormat ocspFormat)
ocspFormat
- The OCSPFormatpublic OCSPFormat getOcspFormat()
public CMSFormat getCmsFormat()
Copyright © 2017 Nets Branch Norway. All Rights Reserved.