![JAR search and dependency download from the Maven repository](/logo.png)
com.windowsazure.messaging.AdmCredential Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Notification-Hubs-java-sdk Show documentation
Show all versions of Notification-Hubs-java-sdk Show documentation
Azure Notification Hubs Java SDK for interacting with the data and management plane operations.
The newest version!
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------
package com.windowsazure.messaging;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.List;
/**
* This class represents Amazon PNS credentials.
*/
public final class AdmCredential extends PnsCredential {
private String clientId;
private String clientSecret;
/**
* Creates a new instance of the AdmCredential class.
*/
public AdmCredential() {
super();
}
/**
* Creates a new instance of the AdmCredential class.
* @param clientId The Amazon client ID.
* @param clientSecret The Amazon client secret.
*/
public AdmCredential(String clientId, String clientSecret) {
super();
this.setClientId(clientId);
this.setClientSecret(clientSecret);
}
/**
* Gets the Amazon client ID.
* @return The Amazon client ID.
*/
public String getClientId() { return clientId; }
/**
* Gets the Amazon client ID.
* @param value THe Amazon client ID to set.
*/
public void setClientId(String value) { clientId = value; }
/**
* Gets the Amazon client secret.
* @return The Amazon client secret.
*/
public String getClientSecret() { return clientSecret; }
/**
* Sets the Amazon client secret.
* @param value The Amazon client secret to set.
*/
public void setClientSecret(String value) { clientSecret = value; }
@Override
public List> getProperties() {
ArrayList> result = new ArrayList<>();
result.add(new SimpleEntry<>("ClientId", clientId));
result.add(new SimpleEntry<>("ClientSecret", clientSecret));
return result;
}
@Override
public String getRootTagName() {
return "AdmCredential";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy