---
title: SecCredentialType
framework: security
role: symbol
role_heading: Enumeration
path: security/seccredentialtype
---

# SecCredentialType

The credential type to be returned by SecKeyGetCredentials.

## Declaration

```swift
enum SecCredentialType
```

## Overview

Overview See the section “Servers and the Keychain” in the macOS Keychain Services Tasks chapter of Keychain Services Programming Guide for information on the use of UI with keychain tasks.

## Topics

### Constants

- [SecCredentialType.default](security/seccredentialtype/default.md)
- [SecCredentialType.withUI](security/seccredentialtype/withui.md)
- [SecCredentialType.noUI](security/seccredentialtype/noui.md)

### Initializers

- [init(rawValue:)](security/seccredentialtype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
