// 
// Decompiled by Procyon v0.6.0
// 

package io.netty.handler.codec.quic;

import java.nio.ByteBuffer;

public interface QuicConnectionIdGenerator
{
    ByteBuffer newId(final int p0);
    
    ByteBuffer newId(final ByteBuffer p0, final int p1);
    
    default ByteBuffer newId(final ByteBuffer scid, final ByteBuffer dcid, final int length) {
        return this.newId(dcid, length);
    }
    
    int maxConnectionIdLength();
    
    boolean isIdempotent();
    
    default QuicConnectionIdGenerator randomGenerator() {
        return SecureRandomQuicConnectionIdGenerator.INSTANCE;
    }
    
    default QuicConnectionIdGenerator signGenerator() {
        return HmacSignQuicConnectionIdGenerator.INSTANCE;
    }
}
