Package org.robovm.apple.security
Class SSLContext
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.security.SSLContext
- All Implemented Interfaces:
AutoCloseable
public class SSLContext extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSSLContext.SSLContextPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedSSLContext() -
Method Summary
Modifier and Type Method Description voidaddDistinguishedName(NSData derDN)protected OSStatusaddDistinguishedName0(long derDN, long derDNLen)Deprecated.Deprecated in iOS 13.0.voidcloseContext()protected OSStatuscloseContext0()Deprecated.Deprecated in iOS 13.0.protected OSStatuscopyRequestedPeerName0(BytePtr peerName, MachineSizedUIntPtr peerNameLen)Deprecated.Deprecated in iOS 13.0.protected OSStatuscopyRequestedPeerNameLength0(MachineSizedUIntPtr peerNameLen)Deprecated.Deprecated in iOS 13.0.static SSLContextcreate(SSLProtocolSide protocolSide, SSLConnectionType connectionType)protected static SSLContextcreate0(CFAllocator alloc, SSLProtocolSide protocolSide, SSLConnectionType connectionType)Deprecated.Deprecated in iOS 13.0.protected OSStatusgetALPNProtocols0(NSArray.NSArrayPtr<NSData> protocols)Deprecated.Deprecated in iOS 13.0.intgetBufferedReadSize()protected OSStatusgetBufferedReadSize0(MachineSizedUIntPtr bufferSize)Deprecated.Deprecated in iOS 13.0.static longgetClassTypeID()Deprecated.Deprecated in iOS 13.0.SSLClientCertificateStategetClientCertificateState()protected OSStatusgetClientCertificateState0(IntPtr clientState)Deprecated.Deprecated in iOS 13.0.VoidPtrgetConnection()protected OSStatusgetConnection0(VoidPtr.VoidPtrPtr connection)Deprecated.Deprecated in iOS 13.0.intgetDatagramWriteSize()protected OSStatusgetDatagramWriteSize0(MachineSizedUIntPtr bufSize)Deprecated.Deprecated in iOS 13.0.NSArray<NSData>getDistinguishedNames()protected OSStatusgetDistinguishedNames0(NSArray.NSArrayPtr<NSData> names)Deprecated.Deprecated in iOS 13.0.short[]getEnabledCiphers()protected OSStatusgetEnabledCiphers0(ShortPtr ciphers, MachineSizedUIntPtr numCiphers)Deprecated.Deprecated in iOS 13.0.longgetMaxDatagramRecordSize()protected OSStatusgetMaxDatagramRecordSize0(MachineSizedUIntPtr maxSize)Deprecated.Deprecated in iOS 13.0.SSLProtocolgetMaxProtocolVersion()protected OSStatusgetMaxProtocolVersion0(IntPtr maxVersion)Deprecated.Deprecated in iOS 13.0.SSLProtocolgetMinProtocolVersion()protected OSStatusgetMinProtocolVersion0(IntPtr minVersion)Deprecated.Deprecated in iOS 13.0.shortgetNegotiatedCipher()protected OSStatusgetNegotiatedCipher0(ShortPtr cipherSuite)Deprecated.Deprecated in iOS 13.0.SSLProtocolgetNegotiatedProtocolVersion()protected OSStatusgetNegotiatedProtocolVersion0(IntPtr protocol)Deprecated.Deprecated in iOS 13.0.longgetNumberEnabledCiphers()protected OSStatusgetNumberEnabledCiphers0(MachineSizedUIntPtr numCiphers)Deprecated.Deprecated in iOS 13.0.longgetNumberSupportedCiphers()protected OSStatusgetNumberSupportedCiphers0(MachineSizedUIntPtr numCiphers)Deprecated.Deprecated in iOS 13.0.StringgetPeerDomainName()protected OSStatusgetPeerDomainName0(BytePtr peerName, MachineSizedUIntPtr peerNameLen)Deprecated.Deprecated in iOS 13.0.protected OSStatusgetPeerDomainNameLength0(MachineSizedUIntPtr peerNameLen)Deprecated.Deprecated in iOS 13.0.StringgetPeerID()protected OSStatusgetPeerID0(BytePtr.BytePtrPtr peerID, MachineSizedUIntPtr peerIDLen)Deprecated.Deprecated in iOS 13.0.SecTrustgetPeerTrust()protected OSStatusgetPeerTrust0(SecTrust.SecTrustPtr trust)Deprecated.Deprecated in iOS 13.0.booleangetSessionOption(SSLSessionOption option)protected OSStatusgetSessionOption0(SSLSessionOption option, BooleanPtr value)Deprecated.Deprecated in iOS 13.0.SSLSessionStategetSessionState()protected OSStatusgetSessionState0(IntPtr state)Deprecated.Deprecated in iOS 13.0.short[]getSupportedCiphers()protected OSStatusgetSupportedCiphers0(ShortPtr ciphers, MachineSizedUIntPtr numCiphers)Deprecated.Deprecated in iOS 13.0.voidhandshake()protected OSStatushandshake0()Deprecated.Deprecated in iOS 13.0.static StringkSSLSessionConfig_3DES_fallback()Deprecated.Deprecated in iOS 11.0.static StringkSSLSessionConfig_anonymous()Deprecated.Deprecated in iOS 13.0.static StringkSSLSessionConfig_ATSv1()Deprecated.Deprecated in iOS 13.0.static StringkSSLSessionConfig_ATSv1_noPFS()Deprecated.Deprecated in iOS 13.0.static StringkSSLSessionConfig_default()Deprecated.Deprecated in iOS 11.0.static StringkSSLSessionConfig_legacy()Deprecated.Deprecated in iOS 13.0.static StringkSSLSessionConfig_legacy_DHE()Deprecated.Deprecated in iOS 13.0.static StringkSSLSessionConfig_RC4_fallback()Deprecated.Deprecated in iOS 11.0.static StringkSSLSessionConfig_standard()Deprecated.Deprecated in iOS 13.0.static StringkSSLSessionConfig_TLSv1_3DES_fallback()Deprecated.Deprecated in iOS 11.0.static StringkSSLSessionConfig_TLSv1_fallback()Deprecated.Deprecated in iOS 13.0.static StringkSSLSessionConfig_TLSv1_RC4_fallback()Deprecated.Deprecated in iOS 11.0.byte[]read(int dataLength)protected OSStatusread0(BytePtr data, long dataLength, MachineSizedUIntPtr processed)Deprecated.Deprecated in iOS 13.0.protected OSStatusreHandshake0()Deprecated.Deprecated in iOS 13.0.protected OSStatussetALPNProtocols0(NSArray protocols)Deprecated.Deprecated in iOS 13.0.voidsetCertificate(SecIdentity identity, SecCertificate... certificates)protected OSStatussetCertificate0(CFArray certRefs)Deprecated.Deprecated in iOS 13.0.voidsetClientSideAuthenticate(SSLAuthenticate auth)protected OSStatussetClientSideAuthenticate0(SSLAuthenticate auth)Deprecated.Deprecated in iOS 13.0.voidsetConnection(VoidPtr connection)protected OSStatussetConnection0(VoidPtr connection)Deprecated.Deprecated in iOS 13.0.voidsetDatagramHelloCookie(byte[] cookie)protected OSStatussetDatagramHelloCookie0(long cookie, long cookieLen)Deprecated.Deprecated in iOS 13.0.voidsetEnabledCiphers(short[] ciphers)protected OSStatussetEnabledCiphers0(long ciphers, long numCiphers)Deprecated.Deprecated in iOS 13.0.voidsetEncryptionCertificate(SecIdentity identity, SecCertificate... certificates)protected OSStatussetEncryptionCertificate0(CFArray certRefs)Deprecated.Deprecated in iOS 9.0.protected OSStatussetError0(OSStatus status)Deprecated.Deprecated in iOS 13.0.protected OSStatussetIOFunctions0(FunctionPtr readFunc, FunctionPtr writeFunc)Deprecated.Deprecated in iOS 13.0.voidsetMaxDatagramRecordSize(long maxSize)protected OSStatussetMaxDatagramRecordSize0(long maxSize)Deprecated.Deprecated in iOS 13.0.voidsetMaxProtocolVersion(SSLProtocol maxVersion)protected OSStatussetMaxProtocolVersion0(SSLProtocol maxVersion)Deprecated.Deprecated in iOS 13.0.voidsetMinProtocolVersion(SSLProtocol minVersion)protected OSStatussetMinProtocolVersion0(SSLProtocol minVersion)Deprecated.Deprecated in iOS 13.0.protected OSStatussetOCSPResponse0(NSData response)Deprecated.Deprecated in iOS 13.0.voidsetPeerDomainName(String peerName)protected OSStatussetPeerDomainName0(long peerName, long peerNameLen)Deprecated.Deprecated in iOS 13.0.voidsetPeerID(String peerID)protected OSStatussetPeerID0(long peerID, long peerIDLen)Deprecated.Deprecated in iOS 13.0.protected OSStatussetSessionConfig0(String config)Deprecated.Deprecated in iOS 13.0.voidsetSessionOption(SSLSessionOption option, boolean value)protected OSStatussetSessionOption0(SSLSessionOption option, boolean value)Deprecated.Deprecated in iOS 13.0.protected OSStatussetSessionTicketsEnabled0(boolean enabled)Deprecated.Deprecated in iOS 13.0.longwrite(byte[] data)protected OSStatuswrite0(long data, long dataLength, MachineSizedUIntPtr processed)Deprecated.Deprecated in iOS 13.0.Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
Constructor Details
-
SSLContext
protected SSLContext()
-
-
Method Details
-
create
- Since:
- Available in iOS 5.0 and later.
-
getSessionState
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setSessionOption
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getSessionOption
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setMinProtocolVersion
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getMinProtocolVersion
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setMaxProtocolVersion
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getMaxProtocolVersion
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setCertificate
public void setCertificate(SecIdentity identity, SecCertificate... certificates) throws OSStatusException- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setEncryptionCertificate
public void setEncryptionCertificate(SecIdentity identity, SecCertificate... certificates) throws OSStatusException- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setConnection
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getConnection
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setPeerDomainName
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getPeerDomainName
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setDatagramHelloCookie
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setMaxDatagramRecordSize
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getMaxDatagramRecordSize
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getNegotiatedProtocolVersion
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getNumberSupportedCiphers
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getSupportedCiphers
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setEnabledCiphers
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getNumberEnabledCiphers
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getEnabledCiphers
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getPeerTrust
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setPeerID
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getPeerID
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getNegotiatedCipher
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
setClientSideAuthenticate
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
addDistinguishedName
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getDistinguishedNames
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getClientCertificateState
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
handshake
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
write
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
read
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getBufferedReadSize
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
getDatagramWriteSize
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
closeContext
- Throws:
OSStatusException- Since:
- Available in iOS 5.0 and later.
-
kSSLSessionConfig_default
Deprecated.Deprecated in iOS 11.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_ATSv1
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_ATSv1_noPFS
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_standard
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_RC4_fallback
Deprecated.Deprecated in iOS 11.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_TLSv1_fallback
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_TLSv1_RC4_fallback
Deprecated.Deprecated in iOS 11.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_legacy
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_legacy_DHE
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_anonymous
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_3DES_fallback
Deprecated.Deprecated in iOS 11.0. No longer supported. Use Network.framework. -
kSSLSessionConfig_TLSv1_3DES_fallback
Deprecated.Deprecated in iOS 11.0. No longer supported. Use Network.framework. -
getClassTypeID
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
create0
@Deprecated protected static SSLContext create0(CFAllocator alloc, SSLProtocolSide protocolSide, SSLConnectionType connectionType)Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getSessionState0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setSessionOption0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getSessionOption0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setIOFunctions0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setSessionConfig0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework.- Since:
- Available in iOS 10.0 and later.
-
setMinProtocolVersion0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getMinProtocolVersion0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setMaxProtocolVersion0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getMaxProtocolVersion0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setCertificate0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setConnection0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getConnection0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setPeerDomainName0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getPeerDomainNameLength0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getPeerDomainName0
@Deprecated protected OSStatus getPeerDomainName0(BytePtr peerName, MachineSizedUIntPtr peerNameLen)Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
copyRequestedPeerNameLength0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework.- Since:
- Available in iOS 9.0 and later.
-
copyRequestedPeerName0
@Deprecated protected OSStatus copyRequestedPeerName0(BytePtr peerName, MachineSizedUIntPtr peerNameLen)Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework.- Since:
- Available in iOS 9.0 and later.
-
setDatagramHelloCookie0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setMaxDatagramRecordSize0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getMaxDatagramRecordSize0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getNegotiatedProtocolVersion0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getNumberSupportedCiphers0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getSupportedCiphers0
@Deprecated protected OSStatus getSupportedCiphers0(ShortPtr ciphers, MachineSizedUIntPtr numCiphers)Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getNumberEnabledCiphers0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setEnabledCiphers0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getEnabledCiphers0
@Deprecated protected OSStatus getEnabledCiphers0(ShortPtr ciphers, MachineSizedUIntPtr numCiphers)Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setSessionTicketsEnabled0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework.- Since:
- Available in iOS 11.0 and later.
-
getPeerTrust0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setPeerID0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getPeerID0
@Deprecated protected OSStatus getPeerID0(BytePtr.BytePtrPtr peerID, MachineSizedUIntPtr peerIDLen)Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getNegotiatedCipher0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setALPNProtocols0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework.- Since:
- Available in iOS 11.0 and later.
-
getALPNProtocols0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework.- Since:
- Available in iOS 11.0 and later.
-
setOCSPResponse0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework.- Since:
- Available in iOS 11.0 and later.
-
setEncryptionCertificate0
Deprecated.Deprecated in iOS 9.0. No longer supported. Use Network.framework. -
setClientSideAuthenticate0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
addDistinguishedName0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getDistinguishedNames0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getClientCertificateState0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
handshake0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
reHandshake0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework.- Since:
- Available in iOS 10.0 and later.
-
write0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
read0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getBufferedReadSize0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
getDatagramWriteSize0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
closeContext0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework. -
setError0
Deprecated.Deprecated in iOS 13.0. No longer supported. Use Network.framework.- Since:
- Available in iOS 11.0 and later.
-