# `GSEndpoint`

*Class*

## Declaration

```swift
class GSEndpoint
```

```objc
@interface GSEndpoint : NSObject
```

```python
class GSEndpoint(NSObject)
```

## Topics

### Instance Properties

- [`GSEndpoint.address`](/Core/GlyphsKit/GSEndpoint/address) — The address of the endpoint URL excluding the user and password components.
- [`GSEndpoint.displayURL`](/Core/GlyphsKit/GSEndpoint/displayURL) — A URL representation suitable for display. Excludes the URL scheme, user, and password components.
- [`GSEndpoint.valid`](/Core/GlyphsKit/GSEndpoint/valid) — Whether the endpoint represents a valid URL.
- [`GSEndpoint.password`](/Core/GlyphsKit/GSEndpoint/password) — The password of the endpoint, or an empty string, if none.
- [`GSEndpoint.user`](/Core/GlyphsKit/GSEndpoint/user) — The user of the endpoint, or an empty string, if none.

### Instance Methods

- [`GSEndpoint credentialWithPersistence:`](/Core/GlyphsKit/GSEndpoint/credentialWithPersistence:)
- [`GSEndpoint deleteSecrets`](/Core/GlyphsKit/GSEndpoint/deleteSecrets) — Deletes the associated Keychain item. Returns `NO` if accessing the Keychain failed, otherwise `YES`.
- [`GSEndpoint initWithAddress:user:password:`](/Core/GlyphsKit/GSEndpoint/initWithAddress:user:password:)
- [`GSEndpoint initWithURL:`](/Core/GlyphsKit/GSEndpoint/initWithURL:)
- [`GSEndpoint normalize`](/Core/GlyphsKit/GSEndpoint/normalize) — If user or password components are included in the address property, they are removed from the address value and instead overwrite the user or password properties.
- [`GSEndpoint readSecrets`](/Core/GlyphsKit/GSEndpoint/readSecrets) — Reads the password from the Keychain. Returns `NO` if accessing the Keychain failed, otherwise `YES`.
- [`GSEndpoint writeSecrets`](/Core/GlyphsKit/GSEndpoint/writeSecrets) — Writes the password to the Keychain. Returns `NO` if accessing the Keychain failed, otherwise `YES`.

### Type Methods

- [`GSEndpoint credentialForURL:persistence:`](/Core/GlyphsKit/GSEndpoint/credentialForURL:persistence:)
- [`GSEndpoint promptCredentialForURL:isRetry:persistence:`](/Core/GlyphsKit/GSEndpoint/promptCredentialForURL:isRetry:persistence:)

## Relationships

### Inherits From

- `NSObject`

