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