com.microsoft.azure.servicebus.security.SecurityConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-servicebus Show documentation
Show all versions of azure-servicebus Show documentation
Java library for Azure Service Bus. Please note, a newer package com.azure:azure-messaging-servicebus for Azure Service Bus is available as of December 2020. While this package will continue to receive critical bug fixes, we strongly encourage you to upgrade. Read the migration guide at https://aka.ms/azsdk/java/migrate/sb for more details.
package com.microsoft.azure.servicebus.security;
/**
* This class contains all security related constants.
* @since 1.2.0
*
*/
public class SecurityConstants {
/**
* Resource URI to be used, for all service bus entities, when requesting authentication token from Azure Active Directory.
*/
public static final String SERVICEBUS_AAD_AUDIENCE_RESOURCE_URL = "https://servicebus.azure.net/";
/**
* JSON web token type.
*/
public static final String JWT_TOKEN_TYPE = "jwt";
/**
* Shared Access Signature token type.
*/
public static final String SAS_TOKEN_TYPE = "servicebus.windows.net:sastoken";
/**
* Default validity of a security token in seconds.
*/
public static final int DEFAULT_SAS_TOKEN_VALIDITY_IN_SECONDS = 20*60; // 20 minutes
}