public Stream<? extends Ticket> getSessionsFor(final String principal) {
        val keys = List.<DynamoDbQueryBuilder>of(
            DynamoDbQueryBuilder.builder()
                .key(ColumnNames.PRINCIPAL.getColumnName())
                .attributeValue(List.of(AttributeValue.builder().s(principal).build()))
                .operator(ComparisonOperator.EQ)
                .build());
        return DynamoDbTableUtils.getRecordsByKeys(amazonDynamoDBClient,
                dynamoDbProperties.getTicketGrantingTicketsTableName(),
                keys, DynamoDbTicketRegistryFacilitator::deserializeTicket)
            .filter(ticket -> !ticket.isExpired());
    }
Gets sessions for.

@param principal the principal
@return the sessions for
support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java