forked from bcgit/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work on multi-release jar build for BC TLS.
- Loading branch information
Showing
16 changed files
with
1,444 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
149 changes: 149 additions & 0 deletions
149
tls/src/main/jdk1.9/org/bouncycastle/jsse/provider/ExportSSLSession_5.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
package org.bouncycastle.jsse.provider; | ||
|
||
import java.security.Principal; | ||
import java.security.cert.Certificate; | ||
|
||
import javax.net.ssl.SSLPeerUnverifiedException; | ||
import javax.net.ssl.SSLSession; | ||
import javax.net.ssl.SSLSessionContext; | ||
|
||
import org.bouncycastle.jsse.BCExtendedSSLSession; | ||
|
||
class ExportSSLSession_5 | ||
implements SSLSession, ExportSSLSession | ||
{ | ||
final BCExtendedSSLSession sslSession; | ||
|
||
ExportSSLSession_5(BCExtendedSSLSession sslSession) | ||
{ | ||
this.sslSession = sslSession; | ||
} | ||
|
||
public BCExtendedSSLSession unwrap() | ||
{ | ||
return sslSession; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) | ||
{ | ||
return null != obj && obj.equals(sslSession); | ||
} | ||
|
||
public int getApplicationBufferSize() | ||
{ | ||
return sslSession.getApplicationBufferSize(); | ||
} | ||
|
||
public String getCipherSuite() | ||
{ | ||
return sslSession.getCipherSuite(); | ||
} | ||
|
||
public long getCreationTime() | ||
{ | ||
return sslSession.getCreationTime(); | ||
} | ||
|
||
public byte[] getId() | ||
{ | ||
return sslSession.getId(); | ||
} | ||
|
||
public long getLastAccessedTime() | ||
{ | ||
return sslSession.getLastAccessedTime(); | ||
} | ||
|
||
public Certificate[] getLocalCertificates() | ||
{ | ||
return sslSession.getLocalCertificates(); | ||
} | ||
|
||
public Principal getLocalPrincipal() | ||
{ | ||
return sslSession.getLocalPrincipal(); | ||
} | ||
|
||
public int getPacketBufferSize() | ||
{ | ||
return sslSession.getPacketBufferSize(); | ||
} | ||
|
||
public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException | ||
{ | ||
return sslSession.getPeerCertificateChain(); | ||
} | ||
|
||
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException | ||
{ | ||
return sslSession.getPeerCertificates(); | ||
} | ||
|
||
public String getPeerHost() | ||
{ | ||
return sslSession.getPeerHost(); | ||
} | ||
|
||
public int getPeerPort() | ||
{ | ||
return sslSession.getPeerPort(); | ||
} | ||
|
||
public Principal getPeerPrincipal() throws SSLPeerUnverifiedException | ||
{ | ||
return sslSession.getPeerPrincipal(); | ||
} | ||
|
||
public String getProtocol() | ||
{ | ||
return sslSession.getProtocol(); | ||
} | ||
|
||
public SSLSessionContext getSessionContext() | ||
{ | ||
return sslSession.getSessionContext(); | ||
} | ||
|
||
public Object getValue(String name) | ||
{ | ||
return sslSession.getValue(name); | ||
} | ||
|
||
public String[] getValueNames() | ||
{ | ||
return sslSession.getValueNames(); | ||
} | ||
|
||
@Override | ||
public int hashCode() | ||
{ | ||
return sslSession.hashCode(); | ||
} | ||
|
||
public void invalidate() | ||
{ | ||
sslSession.invalidate(); | ||
} | ||
|
||
public boolean isValid() | ||
{ | ||
return sslSession.isValid(); | ||
} | ||
|
||
public void putValue(String name, Object value) | ||
{ | ||
sslSession.putValue(name, value); | ||
} | ||
|
||
public void removeValue(String name) | ||
{ | ||
sslSession.removeValue(name); | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return sslSession.toString(); | ||
} | ||
} |
160 changes: 160 additions & 0 deletions
160
tls/src/main/jdk1.9/org/bouncycastle/jsse/provider/ExportSSLSession_7.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
package org.bouncycastle.jsse.provider; | ||
|
||
import java.security.Principal; | ||
import java.security.cert.Certificate; | ||
|
||
import javax.net.ssl.ExtendedSSLSession; | ||
import javax.net.ssl.SSLPeerUnverifiedException; | ||
import javax.net.ssl.SSLSessionContext; | ||
|
||
import org.bouncycastle.jsse.BCExtendedSSLSession; | ||
|
||
class ExportSSLSession_7 | ||
extends ExtendedSSLSession | ||
implements ExportSSLSession | ||
{ | ||
final BCExtendedSSLSession sslSession; | ||
|
||
ExportSSLSession_7(BCExtendedSSLSession sslSession) | ||
{ | ||
this.sslSession = sslSession; | ||
} | ||
|
||
public BCExtendedSSLSession unwrap() | ||
{ | ||
return sslSession; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) | ||
{ | ||
return null != obj && obj.equals(sslSession); | ||
} | ||
|
||
public int getApplicationBufferSize() | ||
{ | ||
return sslSession.getApplicationBufferSize(); | ||
} | ||
|
||
public String getCipherSuite() | ||
{ | ||
return sslSession.getCipherSuite(); | ||
} | ||
|
||
public long getCreationTime() | ||
{ | ||
return sslSession.getCreationTime(); | ||
} | ||
|
||
public byte[] getId() | ||
{ | ||
return sslSession.getId(); | ||
} | ||
|
||
public long getLastAccessedTime() | ||
{ | ||
return sslSession.getLastAccessedTime(); | ||
} | ||
|
||
public Certificate[] getLocalCertificates() | ||
{ | ||
return sslSession.getLocalCertificates(); | ||
} | ||
|
||
public Principal getLocalPrincipal() | ||
{ | ||
return sslSession.getLocalPrincipal(); | ||
} | ||
|
||
public String[] getLocalSupportedSignatureAlgorithms() | ||
{ | ||
return sslSession.getLocalSupportedSignatureAlgorithms(); | ||
} | ||
|
||
public int getPacketBufferSize() | ||
{ | ||
return sslSession.getPacketBufferSize(); | ||
} | ||
|
||
public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException | ||
{ | ||
return sslSession.getPeerCertificateChain(); | ||
} | ||
|
||
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException | ||
{ | ||
return sslSession.getPeerCertificates(); | ||
} | ||
|
||
public String getPeerHost() | ||
{ | ||
return sslSession.getPeerHost(); | ||
} | ||
|
||
public int getPeerPort() | ||
{ | ||
return sslSession.getPeerPort(); | ||
} | ||
|
||
public Principal getPeerPrincipal() throws SSLPeerUnverifiedException | ||
{ | ||
return sslSession.getPeerPrincipal(); | ||
} | ||
|
||
public String[] getPeerSupportedSignatureAlgorithms() | ||
{ | ||
return sslSession.getPeerSupportedSignatureAlgorithms(); | ||
} | ||
|
||
public String getProtocol() | ||
{ | ||
return sslSession.getProtocol(); | ||
} | ||
|
||
public SSLSessionContext getSessionContext() | ||
{ | ||
return sslSession.getSessionContext(); | ||
} | ||
|
||
public Object getValue(String name) | ||
{ | ||
return sslSession.getValue(name); | ||
} | ||
|
||
public String[] getValueNames() | ||
{ | ||
return sslSession.getValueNames(); | ||
} | ||
|
||
@Override | ||
public int hashCode() | ||
{ | ||
return sslSession.hashCode(); | ||
} | ||
|
||
public void invalidate() | ||
{ | ||
sslSession.invalidate(); | ||
} | ||
|
||
public boolean isValid() | ||
{ | ||
return sslSession.isValid(); | ||
} | ||
|
||
public void putValue(String name, Object value) | ||
{ | ||
sslSession.putValue(name, value); | ||
} | ||
|
||
public void removeValue(String name) | ||
{ | ||
sslSession.removeValue(name); | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return sslSession.toString(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
tls/src/main/jdk1.9/org/bouncycastle/jsse/provider/ExportSSLSession_8.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.bouncycastle.jsse.provider; | ||
|
||
import java.util.List; | ||
|
||
import javax.net.ssl.SNIServerName; | ||
|
||
import org.bouncycastle.jsse.BCExtendedSSLSession; | ||
|
||
class ExportSSLSession_8 | ||
extends ExportSSLSession_7 | ||
{ | ||
ExportSSLSession_8(BCExtendedSSLSession sslSession) | ||
{ | ||
super(sslSession); | ||
} | ||
|
||
@SuppressWarnings("unchecked") | ||
public List<SNIServerName> getRequestedServerNames() | ||
{ | ||
return (List<SNIServerName>)JsseUtils_8.exportSNIServerNames(sslSession.getRequestedServerNames()); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
tls/src/main/jdk1.9/org/bouncycastle/jsse/provider/ExportSSLSession_9.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.bouncycastle.jsse.provider; | ||
|
||
import java.util.List; | ||
|
||
import org.bouncycastle.jsse.BCExtendedSSLSession; | ||
|
||
class ExportSSLSession_9 | ||
extends ExportSSLSession_8 | ||
{ | ||
ExportSSLSession_9(BCExtendedSSLSession sslSession) | ||
{ | ||
super(sslSession); | ||
} | ||
|
||
public List<byte[]> getStatusResponses() | ||
{ | ||
return sslSession.getStatusResponses(); | ||
} | ||
} |
Oops, something went wrong.