Пример #1
0
 /**
  * @throws OSStatusException
  * @since Available in iOS 2.0 and later.
  */
 public static CFType add(SecAttributes attributes) throws OSStatusException {
   CFType.CFTypePtr ptr = new CFType.CFTypePtr();
   OSStatus status = add0(attributes, ptr);
   OSStatusException.throwIfNecessary(status);
   return ptr.get();
 }
Пример #2
0
 /**
  * @throws OSStatusException
  * @since Available in iOS 2.0 and later.
  */
 public static CFType getMatching(SecQuery query) throws OSStatusException {
   CFType.CFTypePtr ptr = new CFType.CFTypePtr();
   OSStatus status = getMatching0(query, ptr);
   OSStatusException.throwIfNecessary(status);
   return ptr.get();
 }