FRAIdentity.h revision f877f6ca2428244a6d0954a1dbef471577b32c60
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * The contents of this file are subject to the terms of the Common Development and
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * Distribution License (the License). You may not use this file except in compliance with the
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * specific language governing permission and limitations under the License.
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * When distributing Covered Software, include this CDDL Header Notice in each file and include
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * Header, with the fields enclosed by brackets [] replaced by your own identifying
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * information: "Portions copyright [year] [name of copyright owner]".
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * Copyright 2016 ForgeRock AS.
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * Identity is responsible for modelling the information that makes up part of a user's identity in
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * the context of logging into that user's account.
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * Name of the Identity Provider (IdP) that issued this identity.
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller@property (copy, nonatomic, readonly) NSString *issuer;
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * Name of this identity.
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller@property (copy, nonatomic, readonly) NSString *accountName;
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller * URL pointing to an image (such as a logo) that represents the issuer of this identity.
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller@property (copy, nonatomic, readonly) NSURL *image;
#pragma mark -
- (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel __unavailable;
- (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel accountName:(NSString *)accountName issuer:(NSString *)issuer image:(NSURL *)image backgroundColor:(NSString *)color;
+ (instancetype)identityWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel accountName:(NSString *)accountName issuer:(NSString *)issuer image:(NSURL *)image backgroundColor:(NSString *)color;
#pragma mark -
* @return BOOL False if there was an error with the operation, in which case check the error parameter for details.
* @return BOOL False if there was an error with the operation, in which case check the error parameter for details.
#pragma mark -
@end