public ByteBuffer getSecretStage ( final String secretId , final Stage stage ) { final GetSecretValueRequest getSecretValueRequest = new GetSecretValueRequest ( ) ; getSecretValueRequest . setSecretId ( secretId ) ; getSecretValueRequest . setVersionStage ( stage . getAwsName ( ) ) ; final GetSecretValueResult result = getDelegate ( ) . getSecretValue ( getSecretValueRequest ) ; return result . getSecretBinary ( ) ; }
Retrieve a specific stage of the secret .