FRAIdentity.m revision 2229ffbfe08c2cd606c305f8934e627548002c9e
168N/A/*
168N/A * The contents of this file are subject to the terms of the Common Development and
168N/A * Distribution License (the License). You may not use this file except in compliance with the
373N/A * License.
373N/A *
168N/A * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
168N/A * specific language governing permission and limitations under the License.
168N/A *
168N/A * When distributing Covered Software, include this CDDL Header Notice in each file and include
292N/A * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
292N/A * Header, with the fields enclosed by brackets [] replaced by your own identifying
292N/A * information: "Portions copyright [year] [name of copyright owner]".
292N/A *
168N/A * Copyright 2016 ForgeRock AS.
168N/A */
168N/A
292N/A#import "FRAIdentity.h"
292N/A
292N/A@implementation FRAIdentity
292N/A
292N/A- (instancetype)initWithAccountName:(NSString*)accountName issuedBy:(NSString*)issuer withImage:(NSURL*)image {
292N/A if (self = [super init]) {
292N/A _accountName = accountName;
292N/A _issuer = issuer;
292N/A _image = image;
292N/A }
292N/A return self;
168N/A}
168N/A
168N/A+ (instancetype)identityWithAccountName:(NSString*)accountName issuedBy:(NSString*)issuer withImage:(NSURL*)image {
168N/A return [[FRAIdentity alloc] initWithAccountName:accountName issuedBy:issuer withImage:image];
168N/A}
168N/A
168N/A@end
168N/A