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 NotificationHubs Show documentation
Show all versions of NotificationHubs Show documentation
This package contains the JAVA SDK for Azure Notification Hubs.
The newest version!
package com.windowsazure.messaging;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.List;
public final class AdmCredential extends PnsCredential {
private String clientId;
private String clientSecret;
public AdmCredential(){
this(null,null);
}
public AdmCredential(String clientId, String clientSecret){
super();
this.setClientId(clientId);
this.setClientSecret(clientSecret);
}
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
}
public String getClientSecret() {
return clientSecret;
}
public void setClientSecret(String clientSecret) {
this.clientSecret = clientSecret;
}
@Override
public List> getProperties() {
ArrayList> result = new ArrayList>();
result.add(new SimpleEntry("ClientId",getClientId()));
result.add(new SimpleEntry("ClientSecret",getClientSecret()));
return result;
}
@Override
public String getRootTagName() {
return "AdmCredential";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy