com.azure.core.credential.ProofOfPossessionOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-core Show documentation
Show all versions of azure-core Show documentation
This package contains core types for Azure Java clients.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.credential;
import com.azure.core.http.HttpMethod;
import java.net.URL;
/**
* Specifies Options for Pop Token authentication.
*/
public class ProofOfPossessionOptions {
private String proofOfPossessionNonce;
private URL requestUrl;
private HttpMethod requestMethod;
/**
* Creates a new instance of {@link ProofOfPossessionOptions}.
*/
public ProofOfPossessionOptions() {
}
/**
* Gets the proof of possession nonce.
*
* @return A string representing the proof of possession nonce.
*/
public String getProofOfPossessionNonce() {
return proofOfPossessionNonce;
}
/**
* Sets the proof of possession nonce.
*
* @param proofOfPossessionNonce A string representing the proof of possession nonce.
* @return The updated instance of ProofOfPossessionOptions.
*/
public ProofOfPossessionOptions setProofOfPossessionNonce(String proofOfPossessionNonce) {
this.proofOfPossessionNonce = proofOfPossessionNonce;
return this;
}
/**
* Gets the request URL.
*
* @return A URL representing the request URL.
*/
public URL getRequestUrl() {
return requestUrl;
}
/**
* Sets the request URL.
*
* @param requestUrl A URL representing the request URL.
* @return The updated instance of ProofOfPossessionOptions.
*/
public ProofOfPossessionOptions setRequestUrl(URL requestUrl) {
this.requestUrl = requestUrl;
return this;
}
/**
* Gets the request method.
*
* @return An HttpMethod representing the request method.
*/
public HttpMethod getRequestMethod() {
return requestMethod;
}
/**
* Sets the request method.
*
* @param requestMethod An HttpMethod representing the request method.
* @return The updated instance of ProofOfPossessionOptions.
*/
public ProofOfPossessionOptions setRequestMethod(HttpMethod requestMethod) {
this.requestMethod = requestMethod;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy