encode internally , meant to be called by extensions . default behavior will encode the data based on the registered service public key 's algorithm using javax.crypto.cipher . concode_field_sep Logger logger concode_field_sep String encode concode_elem_sep PublicKey createRegisteredServicePublicKey concode_elem_sep Cipher initializeCipherBasedOnServicePublicKey
byte [ ] function ( final String arg0 , final PublicKey arg1 , final RegisteredService arg2 ) { try { final Cipher loc0 = initializeCipherBasedOnServicePublicKey ( arg1 , arg2 ) ; if ( loc0 != null ) { return loc0 . doFinal ( arg0 . getBytes ( StandardCharsets . UTF_8 ) ) ; } } catch ( final Exception loc0 ) { throw Throwables . propagate ( loc0 ) ; } return null ; }