Package org.robovm.apple.security
Class SecTrust
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.security.SecTrust
- All Implemented Interfaces:
AutoCloseable
public class SecTrust extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSecTrust.SecTrustPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedSecTrust() -
Method Summary
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
-
SecTrust
protected SecTrust()
-
-
Method Details
-
create
public static SecTrust create(SecCertificate certificate, SecPolicy policy) throws OSStatusException- Throws:
OSStatusException- Since:
- Available in iOS 2.0 and later.
-
create
public static SecTrust create(List<SecCertificate> certificates, List<SecPolicy> policies) throws OSStatusException- Throws:
OSStatusException- Since:
- Available in iOS 2.0 and later.
-
setPolicy
- Throws:
OSStatusException- Since:
- Available in iOS 6.0 and later.
-
setPolicies
- Throws:
OSStatusException- Since:
- Available in iOS 6.0 and later.
-
getPolicies
- Throws:
OSStatusException- Since:
- Available in iOS 7.0 and later.
-
setNetworkFetchAllowed
- Throws:
OSStatusException- Since:
- Available in iOS 7.0 and later.
-
isNetworkFetchAllowed
- Throws:
OSStatusException- Since:
- Available in iOS 7.0 and later.
-
setAnchorCertificates
public void setAnchorCertificates(List<SecCertificate> anchorCertificates) throws OSStatusException- Throws:
OSStatusException- Since:
- Available in iOS 2.0 and later.
-
setAnchorCertificatesOnly
- Throws:
OSStatusException- Since:
- Available in iOS 2.0 and later.
-
getCustomAnchorCertificates
- Throws:
OSStatusException- Since:
- Available in iOS 7.0 and later.
-
setVerifyDate
- Throws:
OSStatusException- Since:
- Available in iOS 2.0 and later.
-
evaluate
- Throws:
OSStatusException- Since:
- Available in iOS 2.0 and later.
-
evaluateAsync
public void evaluateAsync(DispatchQueue queue, VoidBlock2<SecTrust,SecTrustResultType> result) throws OSStatusException- Throws:
OSStatusException- Since:
- Available in iOS 7.0 and later.
-
getTrustResult
- Throws:
OSStatusException- Since:
- Available in iOS 7.0 and later.
-
setOCSPResponse
- Throws:
OSStatusException- Since:
- Available in iOS 7.0 and later.
-
setOCSPResponse
- Throws:
OSStatusException- Since:
- Available in iOS 7.0 and later.
-
getClassTypeID
public static long getClassTypeID() -
create0
protected static OSStatus create0(CFType certificates, CFType policies, SecTrust.SecTrustPtr trust) -
setPolicies0
-
getPolicies0
-
setNetworkFetchAllowed0
-
isNetworkFetchAllowed0
-
setAnchorCertificates0
-
setAnchorCertificatesOnly0
-
getCustomAnchorCertificates0
-
setVerifyDate0
-
getVerifyTime
public double getVerifyTime() -
evaluate0
Deprecated.Deprecated in iOS 13.0. Use SecTrustEvaluateWithError -
evaluateAsync0
@Deprecated protected OSStatus evaluateAsync0(DispatchQueue queue, VoidBlock2<SecTrust,SecTrustResultType> result)Deprecated.Deprecated in iOS 13.0. Use SecTrustEvaluateAsyncWithError -
evaluateWithError
- Throws:
NSErrorException- Since:
- Available in iOS 12.0 and later.
-
evaluateAsyncWithError
public OSStatus evaluateAsyncWithError(DispatchQueue queue, VoidBlock3<SecTrust,Boolean,NSError> result)- Since:
- Available in iOS 13.0 and later.
-
getTrustResult0
-
getPublicKey
Deprecated.Deprecated in iOS 14.0. Use SecTrustCopyKey -
copyKey
- Since:
- Available in iOS 14.0 and later.
-
getCertificateCount
public long getCertificateCount() -
getCertificate
Deprecated.Deprecated in iOS 15.0. Use SecTrustCopyCertificateChain -
getExceptions
-
setExceptions
-
getProperties
Deprecated.Deprecated in iOS 15.0. Use SecTrustEvaluateWithError -
getResult
-
setOCSPResponse0
-
setSignedCertificateTimestamps
-
copyCertificateChain
- Since:
- Available in iOS 15.0 and later.
-