protected String extractApplicationLabel ( final byte [ ] pData ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Extract Application label" ) ; } String label = null ; // Get Preferred name first byte [ ] labelByte = TlvUtil . getValue ( pData , EmvTags . APPLICATION_PREFERRED_NAME ) ; // Get Application label if ( labelByte == null ) { labelByte = TlvUtil . getValue ( pData , EmvTags . APPLICATION_LABEL ) ; } // Convert to String if ( labelByte != null ) { label = new String ( labelByte ) ; } return label ; }
Method used to extract application label