src/java.base/share/classes/sun/security/ssl/PostHandshakeContext.java
changeset 51134 a0de9a3a6766
parent 50768 68fa3d4026ea
child 52201 7c6dfd16373f
equal deleted inserted replaced
51133:e15cd424736d 51134:a0de9a3a6766
    25 
    25 
    26 package sun.security.ssl;
    26 package sun.security.ssl;
    27 
    27 
    28 import java.io.IOException;
    28 import java.io.IOException;
    29 import java.nio.ByteBuffer;
    29 import java.nio.ByteBuffer;
       
    30 import java.util.ArrayList;
    30 import java.util.LinkedHashMap;
    31 import java.util.LinkedHashMap;
    31 import java.util.Map;
    32 import java.util.Map;
    32 
    33 
    33 /**
    34 /**
    34  * A compact implementation of HandshakeContext for post-handshake messages
    35  * A compact implementation of HandshakeContext for post-handshake messages
    43 
    44 
    44         if (!negotiatedProtocol.useTLS13PlusSpec()) {
    45         if (!negotiatedProtocol.useTLS13PlusSpec()) {
    45             conContext.fatal(Alert.UNEXPECTED_MESSAGE,
    46             conContext.fatal(Alert.UNEXPECTED_MESSAGE,
    46                 "Post-handshake not supported in " + negotiatedProtocol.name);
    47                 "Post-handshake not supported in " + negotiatedProtocol.name);
    47         }
    48         }
       
    49 
       
    50         this.localSupportedSignAlgs = new ArrayList<SignatureScheme>(
       
    51             context.conSession.getLocalSupportedSignatureSchemes());
    48 
    52 
    49         handshakeConsumers = new LinkedHashMap<>(consumers);
    53         handshakeConsumers = new LinkedHashMap<>(consumers);
    50         handshakeFinished = true;
    54         handshakeFinished = true;
    51     }
    55     }
    52 
    56