/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ #import @class PETCredentials; @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; /** * Returns the credentials cached in the keychain. If credentials are not available returns nil * @return A populated PETCredentials object, nil if no credentials are available in the keychain */ - (PETCredentials *)getCachedCredentials; /** * Saves a set of PETCredentials in the keychain. * @param creds A populated PETCredentials object */ - (void)cacheCredentials:(PETCredentials *)creds; /** * Sets the default AWSCredentialsProvider for the generated SDK. The credentials provider uses * the cached credentials from the keychain if they are available. If there are no cached credentials * in the keychain the method returns without setting a default configuration. */ - (void)setDefaultConfiguration; @end