cn.teleinfo.idpointer.sdk.core.VerifyAuthRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of id-pointer-sdk Show documentation
Show all versions of id-pointer-sdk Show documentation
基于Java语言开发的工业互联网标识解析体系客户端软件开发工具包,应用通过集成 id-pointer-sdk,快速对接标识解析、标识注册、标识维护等功能服务。
The newest version!
/**********************************************************************\
© COPYRIGHT 2019 Corporation for National Research Initiatives (CNRI);
All rights reserved.
The HANDLE.NET software is made available subject to the
Handle.Net Public License Agreement, which may be obtained at
http://hdl.handle.net/20.1000/112 or hdl:20.1000/112
\**********************************************************************/
package cn.teleinfo.idpointer.sdk.core;
/** Request used to resolve a handle. Holds the handle and parameters
* used in resolution.
*/
public class VerifyAuthRequest extends AbstractRequest {
public int handleIndex;
public byte nonce[];
// public byte origDigestAlg; // unused. VerifyAuthRequest is now encoded using an old format which allows variable length "origRequestDigest".
public byte origRequestDigest[];
public byte signedResponse[];
public VerifyAuthRequest(byte handle[], byte nonce[], byte origRequestDigest[], @SuppressWarnings("unused") byte origDigestAlg, byte signedResponse[], int handleIndex, AuthenticationInfo authInfo) {
super(handle, OC_VERIFY_CHALLENGE, authInfo);
this.handleIndex = handleIndex;
this.nonce = nonce;
// this.origDigestAlg = origDigestAlg;
this.origRequestDigest = origRequestDigest;
this.signedResponse = signedResponse;
this.authInfo = authInfo;
this.certify = true;
this.returnRequestDigest = true;
}
}