protected boolean isTicketAuthenticityVerified ( final String ticketId ) { if ( this . cipherExecutor != null ) { LOGGER . trace ( "Attempting to decode service ticket [{}] to verify authenticity" , ticketId ) ; return ! StringUtils . isEmpty ( this . cipherExecutor . decode ( ticketId ) ) ; } return ! StringUtils . isEmpty ( ticketId ) ; }
Verify the ticket id received is actually legitimate before contacting downstream systems to find and process it .