1 7 8 15 16 package javax.net.ssl; 17 18 import java.nio.ByteBuffer; 19 import java.nio.ReadOnlyBufferException; 20 21 319 public abstract class SSLEngine 320 { 321 322 329 protected SSLEngine() { } 330 331 350 protected SSLEngine(String peerHost, int peerPort) { } 351 352 361 public String getPeerHost() { 362 return null; 363 } 364 365 374 public int getPeerPort() { 375 return 0; 376 } 377 378 409 public SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst) 410 throws SSLException 411 { 412 return null; 413 } 414 415 447 public SSLEngineResult wrap(ByteBuffer[] srcs, ByteBuffer dst) 448 throws SSLException 449 { 450 return null; 451 } 452 453 528 public abstract SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int 529 length, ByteBuffer dst) throws SSLException; 530 531 562 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) 563 throws SSLException 564 { 565 return null; 566 } 567 568 600 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts) 601 throws SSLException 602 { 603 return null; 604 } 605 606 686 public abstract SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, 687 int offset, int length) throws SSLException; 688 689 713 public abstract Runnable getDelegatedTask(); 714 715 747 public abstract void closeInbound() throws SSLException; 748 749 758 public abstract boolean isInboundDone(); 759 760 772 public abstract void closeOutbound(); 773 774 789 public abstract boolean isOutboundDone(); 790 791 802 public abstract String[] getSupportedCipherSuites(); 803 804 819 public abstract String[] getEnabledCipherSuites(); 820 821 839 public abstract void setEnabledCipherSuites(String[] suites); 840 841 847 public abstract String[] getSupportedProtocols(); 848 849 856 public abstract String[] getEnabledProtocols(); 857 858 872 public abstract void setEnabledProtocols(String[] protocols); 873 874 894 public abstract SSLSession getSession(); 895 896 926 public abstract void beginHandshake() throws SSLException; 927 928 933 public abstract SSLEngineResult.HandshakeStatus getHandshakeStatus(); 934 935 952 public abstract void setUseClientMode(boolean mode); 953 954 962 public abstract boolean getUseClientMode(); 963 964 990 public abstract void setNeedClientAuth(boolean need); 991 992 1003 public abstract boolean getNeedClientAuth(); 1004 1005 1030 public abstract void setWantClientAuth(boolean want); 1031 1032 1043 public abstract boolean getWantClientAuth(); 1044 1045 1056 public abstract void setEnableSessionCreation(boolean flag); 1057 1058 1066 public abstract boolean getEnableSessionCreation(); 1067} 1068 | Popular Tags |