SecurityConstants Class

  • java.lang.Object
    • com.microsoft.azure.servicebus.security.SecurityConstants

public class SecurityConstants

This class contains all security related constants.

Field Summary

Modifier and Type Field and Description
final int DEFAULT_SAS_TOKEN_VALIDITY_IN_SECONDS

Default validity of a security token in seconds.

final String JWT_TOKEN_TYPE

JSON web token type.

final int MAX_KEY_LENGTH

Max allowed length for security key.

final int MAX_KEY_NAME_LENGTH

Max allowed length for security key name.

final String SAS_TOKEN_TYPE

Shared Access Signature token type.

final String SERVICEBUS_AAD_AUDIENCE_RESOURCE_URL

Resource URI to be used, for all service bus entities, when requesting authentication token from Azure Active Directory.

Field Details

DEFAULT_SAS_TOKEN_VALIDITY_IN_SECONDS

public static final int DEFAULT_SAS_TOKEN_VALIDITY_IN_SECONDS= 20*60

Default validity of a security token in seconds.

JWT_TOKEN_TYPE

public static final String JWT_TOKEN_TYPE= "jwt"

JSON web token type.

MAX_KEY_LENGTH

public static final int MAX_KEY_LENGTH= 256

Max allowed length for security key.

MAX_KEY_NAME_LENGTH

public static final int MAX_KEY_NAME_LENGTH= 256

Max allowed length for security key name.

SAS_TOKEN_TYPE

public static final String SAS_TOKEN_TYPE= "servicebus.windows.net:sastoken"

Shared Access Signature token type.

SERVICEBUS_AAD_AUDIENCE_RESOURCE_URL

public static final String SERVICEBUS_AAD_AUDIENCE_RESOURCE_URL= "https://servicebus.azure.net/"

Resource URI to be used, for all service bus entities, when requesting authentication token from Azure Active Directory.

Applies to