All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.handle.hdllib.VerifyAuthRequest Maven / Gradle / Ivy

Go to download

CNRI Handle.net Software (Permission granted for redistribution by Giridhar Manepalli at CNRI)

There is a newer version: 9.2.0.v20190814
Show 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 net.handle.hdllib;

/** 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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy