---
title: kSecTransformActionAttributeValidation
framework: security
role: symbol
role_heading: Global Variable
path: security/ksectransformactionattributevalidation
---

# kSecTransformActionAttributeValidation

An action that triggers to perform validation of an attribute.

## Declaration

```swift
let kSecTransformActionAttributeValidation: CFString
```

## Discussion

Discussion Allows a block to be called to validate the new value for an attribute. The default is no validation and any CFTypeRef can be used as the new value. The block should return NULL if the value is ok to set on the attribute or a CFErrorRef otherwise.
