public List < SessionTicketKey > parseBytes ( byte [ ] json ) throws IOException { List < String > allSeeds = TicketSeeds . parseFromJSONBytes ( json , objectMapper ) . getAllSeeds ( ) ; return allSeeds . stream ( ) . map ( this :: deriveKeyFromSeed ) . collect ( Collectors . toList ( ) ) ; }
Returns a list of tickets parsed from the given JSON bytes . The keys are returned in a format suitable for use with netty . The first keys are the current keys following that are the new keys and old keys .