<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialServiceIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialServiceIdentifier"
  },
  "title" : "ASCredentialServiceIdentifier"
}
-->

# ASCredentialServiceIdentifier

An identifier representing a particular service for which the user needs a credential, like a web site.

```
class ASCredentialServiceIdentifier
```

## Topics

### Creating a credential service identifier

[`-  initWithIdentifier:type:`](/documentation/AuthenticationServices/ASCredentialServiceIdentifier/init(identifier:type:))

Initializes a credential service identifier instance.

### Identifying the credential service

[`identifier`](/documentation/AuthenticationServices/ASCredentialServiceIdentifier/identifier)

A string that names the identified service.

[`type`](/documentation/AuthenticationServices/ASCredentialServiceIdentifier/type)

The kind of services that the identifier represents.

[`IdentifierType`](/documentation/AuthenticationServices/ASCredentialServiceIdentifier/IdentifierType)

Possible values for the service identifier type.

## Relationships

### Conforms To

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Sendable`](/documentation/Swift/Sendable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)