---
title: SecRequirementGetTypeID()
framework: security
role: symbol
role_heading: Function
path: security/secrequirementgettypeid()
---

# SecRequirementGetTypeID()

Returns the unique identifier of the opaque type to which a code requirement object belongs.

## Declaration

```swift
func SecRequirementGetTypeID() -> CFTypeID
```

## Return Value

Return Value A value that identifies the opaque type of a SecRequirement object.

## Discussion

Discussion You can compare the value returned by this function to the CFTypeID identifier obtained by calling the CFGetTypeID(_:) function on a specific object. These values might change from release to release or platform to platform.

## See Also

### Related Documentation

- [SecRequirementCreateWithString(_:_:_:)](security/secrequirementcreatewithstring(_:_:_:).md)
- [SecRequirementCreateWithStringAndErrors(_:_:_:_:)](security/secrequirementcreatewithstringanderrors(_:_:_:_:).md)
