SecurityProtocol
internal protocol SecurityProtocol : CaseIterable
The SecurityProtocol protocol defines a set of requirements for security protocol implementations.
Implementations of this protocol must provide an ObjectIdentifier (oid) value that represents
the identifier of the security protocol.
-
Declaration
Swift
var oid: ObjectIdentifier { get } -
from(oid:Default implementation) Returns an instance of the
SecurityProtocolbased on the providedObjectIdentifier, if there is a match between theObjectIdentifierand a protocol.Default Implementation
Declaration
Swift
static func from(oid: ObjectIdentifier) -> Self?Parameters
oidThe security protocol OID.
Return Value
An instance of a security protocol.
-
isValid(oid:Default implementation) Checks if a given
ObjectIdentifiercorresponds to a validSecurityProtocol.Default Implementation
Declaration
Swift
static func isValid(oid: ObjectIdentifier) -> BoolParameters
oidThe security protocol OID that has to be checked.
Return Value
trueif the givenObjectIdentifieris valid;falseotherwise.
View on GitHub
SecurityProtocol Protocol Reference