NSURL(WSCKeychainURL) Category Reference
Declared in | NSURL+WSCKeychainURL.h NSURL+WSCKeychainURL.m |
Tasks
Creating a Singleton URL for Common Keychain and Keychains Directory
-
+ sharedURLForCurrentUserKeychainsDirectory
-
+ sharedURLForSystemKeychainsDirectory
-
+ sharedURLForLoginKeychain
-
+ sharedURLForSystemKeychain
Creating an NSURL with Common Path
Class Methods
URLForHomeDirectory
Returns the URL of the current user’s or application’s home directory, depending on the platform.
+ (NSURL *)URLForHomeDirectory
Return Value
An URL specifing the location of home directory for current user.
Discussion
In OS X, it is the application’s sandbox directory or the current user’s home directory (if the application is not in a sandbox).
Declared In
NSURL+WSCKeychainURL.h
URLForTemporaryDirectory
Returns the URL of the temporary directory for current user.
+ (NSURL *)URLForTemporaryDirectory
Return Value
An URL specifing the location of temporary directory for current user.
If no such directory is currently available, returns nil
.
Discussion
See the NSFileManager
method URLForDirectory:inDomain:appropriateForURL:create:error:
for the preferred means of finding the correct temporary directory.
Declared In
NSURL+WSCKeychainURL.h
sharedURLForCurrentUserKeychainsDirectory
Returns the URL of the current user’s keychain directory: ~/Library/Keychains
.
+ (NSURL *)sharedURLForCurrentUserKeychainsDirectory
Return Value
An URL of the current user’s keychain directory: ~/Library/Keychains
.
Discussion
This method always returns the same NSURL
object (a singleton object).
If you wanna a new NSURL
object, you should create a new instance of NSURL
(using the factory methods in NSURL
that doesn’t start with “shared” )
rather than using the this method.
Declared In
NSURL+WSCKeychainURL.h
sharedURLForLoginKeychain
Returns an NSURL
object specifying the location of login.keychain
for current user.
+ (NSURL *)sharedURLForLoginKeychain
Return Value
An NSURL
object specifying the location of login.keychain
for current user.
Discussion
This method always returns the same NSURL
object (a singleton object).
If you wanna a new NSURL
object, you should create a new instance of NSURL
(using the factory methods in NSURL
that doesn’t start with “shared” )
rather than using the this method.
Declared In
NSURL+WSCKeychainURL.h
sharedURLForSystemKeychain
Returns an NSURL
object specifying the location of System.keychain
.
+ (NSURL *)sharedURLForSystemKeychain
Return Value
An NSURL
object specifying the location of System.keychain
.
Discussion
This method always returns the same NSURL
object (a singleton object).
If you wanna a new NSURL
object, you should create a new instance of NSURL
(using the factory methods in NSURL
that doesn’t start with “shared” )
rather than using the this method.
Declared In
NSURL+WSCKeychainURL.h
sharedURLForSystemKeychainsDirectory
Returns the URL of the system directory: /Library/Keychains
.
+ (NSURL *)sharedURLForSystemKeychainsDirectory
Return Value
An URL of the system keychain directory: /Library/Keychains
.
Discussion
This method always returns the same NSURL
object (a singleton object).
If you wanna a new NSURL
object, you should create a new instance of NSURL
(using the factory methods in NSURL
that doesn’t start with “shared” )
rather than using the this method.
Declared In
NSURL+WSCKeychainURL.h