extensions = ((EntityDescriptor)roleDescriptor.getParent()).getExtensions(); if (extensions != null) { result = extensions.getUnknownXMLObjects(extensionName);
Extensions extensions = descriptor.getExtensions(); if (extensions == null) { extensions = extBuilder.buildObject();
/** * Retrieves validation information from the provided role descriptor. * * @param roleDescriptor the role descriptor from which to resolve information. * @param accumulator accumulator of PKIX validation information to return * @throws ResolverException thrown if the key, certificate, or CRL information is represented in an unsupported * format * */ protected void resolvePKIXInfo(final Collection<PKIXValidationInformation> accumulator, final RoleDescriptor roleDescriptor) throws ResolverException { if (roleDescriptor.getParent() instanceof EntityDescriptor) { final EntityDescriptor entityDescriptor = (EntityDescriptor) roleDescriptor.getParent(); resolvePKIXInfo(accumulator, entityDescriptor.getExtensions()); // These would have been cached on the EntityDescriptor by another mechanism, // for example via pre-processing by the MetadataResolver. final LockableClassToInstanceMultiMap<Object> entityDescriptorObjectMetadata = entityDescriptor.getObjectMetadata(); final ReadWriteLock rwlock = entityDescriptorObjectMetadata.getReadWriteLock(); try { rwlock.readLock().lock(); accumulator.addAll(entityDescriptorObjectMetadata.get(PKIXValidationInformation.class)); } finally { rwlock.readLock().unlock(); } } }
Extensions exts = input.getExtensions(); if (exts != null) { final List<XMLObject> children = exts.getUnknownXMLObjects(EntityAttributes.DEFAULT_ELEMENT_NAME);
final Extensions extensions = entity.getExtensions(); if (null == extensions || null == mapper) { return;
Extensions extensions = entity.getExtensions(); if (null != extensions) { for (final XMLObject object : extensions.getUnknownXMLObjects(RegistrationInfo.DEFAULT_ELEMENT_NAME)) {