public static String getCanonicalPathFromCredentials ( final StorageCredentials credentials , final String absolutePath ) { final String account = credentials . getAccountName ( ) ; if ( account == null ) { final String errorMessage = SR . CANNOT_CREATE_SAS_FOR_GIVEN_CREDENTIALS ; throw new IllegalArgumentException ( errorMessage ) ; } final StringBuilder builder = new StringBuilder ( "/" ) ; builder . append ( account ) ; builder . append ( absolutePath ) ; return builder . toString ( ) ; }
Gets the canonical path for an object from the credentials .