/** {@inheritDoc} */ public Set<Namespace> getNamespaces() { return new LazySet<>(); }
/** {@inheritDoc} */ public Set<Namespace> getNamespaces() { return new LazySet<Namespace>(); }
/** Constructor. */ protected AbstractSAMLProfileConfiguration() { assertionAudiences = new LazySet<String>(); }
/** Constructor. */ public BasicCredential() { super(); keyNames = new LazySet<String>(); usageType = UsageType.UNSPECIFIED; }
/** Constructor. */ public BasicCredential() { super(); keyNames = new LazySet<String>(); usageType = UsageType.UNSPECIFIED; }
/** Constructor. */ protected AbstractSAML2ProfileConfiguration() { proxyAudiences = new LazySet<String>(); }
/** * Constructor. * * @param owningObject the XMLObject whose namespace info is to be managed */ public NamespaceManager(XMLObject owningObject) { owner = owningObject; decls = new LazySet<Namespace>(); usage = new LazySet<Namespace>(); attrNames = new LazySet<Namespace>(); attrValues = new LazyMap<String, Namespace>(); }
/** * Constructor. * * @param owningObject the XMLObject whose namespace info is to be managed */ public NamespaceManager(XMLObject owningObject) { owner = owningObject; decls = new LazySet<Namespace>(); usage = new LazySet<Namespace>(); attrNames = new LazySet<Namespace>(); attrValues = new LazyMap<String, Namespace>(); }
/** * Constructor. * * @param newOwner the XMLObject that owns these attributes * * @throws NullPointerException thrown if the given XMLObject is null */ public AttributeMap(XMLObject newOwner) throws NullPointerException { if (newOwner == null) { throw new NullPointerException("Attribute owner XMLObject may not be null"); } attributeOwner = newOwner; attributes = new LazyMap<QName, String>(); idAttribNames = new LazySet<QName>(); qnameAttribNames = new LazySet<QName>(); }
/** * Constructor. * * @param credentials a reference to the collection in which credentials previously * resolved in a processing flow are being stored */ public KeyInfoResolutionContext(Collection<Credential> credentials) { resolvedCredentials = Collections.unmodifiableCollection(credentials); properties = new LazyMap<String, Object>(); keyNames = new LazySet<String>(); }
/** * Constructor. * * @param credentials a reference to the collection in which credentials previously * resolved in a processing flow are being stored */ public KeyInfoResolutionContext(Collection<Credential> credentials) { resolvedCredentials = Collections.unmodifiableCollection(credentials); properties = new LazyMap<String, Object>(); keyNames = new LazySet<String>(); }
/** Constructor. */ protected X509Options() { x509DigestAlgorithmURI = EncryptionConstants.ALGO_ID_DIGEST_SHA256; subjectAltNames = new LazySet<Integer>(); x500DNHandler = new InternalX500DNHandler(); x500SubjectDNFormat = X500DNHandler.FORMAT_RFC2253; x500IssuerDNFormat = X500DNHandler.FORMAT_RFC2253; }
/** * Extract trusted names from a KeyInfo element. * * @param keyInfo the KeyInfo instance from which to extract trusted names * @return set of trusted names, possibly empty */ protected Set<String> getTrustedNames(KeyInfo keyInfo) { // TODO return anything if there are things other than names in the KeyInfo ? Set<String> names = new LazySet<String>(); names.addAll(KeyInfoHelper.getKeyNames(keyInfo)); return names; }
/** Constructor. */ protected X509Options() { x509DigestAlgorithmURI = EncryptionConstants.ALGO_ID_DIGEST_SHA256; subjectAltNames = new LazySet<Integer>(); x500DNHandler = new InternalX500DNHandler(); x500SubjectDNFormat = X500DNHandler.FORMAT_RFC2253; x500IssuerDNFormat = X500DNHandler.FORMAT_RFC2253; }
/** {@inheritDoc} */ public void clear() { LazySet<QName> keys = new LazySet<QName>(); keys.addAll(attributes.keySet()); for (QName attributeName : keys) { remove(attributeName); } }
/** {@inheritDoc} */ protected X509Options clone() { X509Options clonedOptions = (X509Options) super.clone(); clonedOptions.subjectAltNames = new LazySet<Integer>(); clonedOptions.subjectAltNames.addAll(this.subjectAltNames); clonedOptions.x500DNHandler = this.x500DNHandler.clone(); return clonedOptions; }
/** {@inheritDoc} */ protected X509Options clone() { X509Options clonedOptions = (X509Options) super.clone(); clonedOptions.subjectAltNames = new LazySet<Integer>(); clonedOptions.subjectAltNames.addAll(this.subjectAltNames); clonedOptions.x500DNHandler = this.x500DNHandler.clone(); return clonedOptions; }
/** {@inheritDoc} */ public void clear() { LazySet<QName> keys = new LazySet<QName>(); keys.addAll(attributes.keySet()); for (QName attributeName : keys) { remove(attributeName); } }
/** * Obtain the set of namespace prefixes used in a non-visible manner on owning XMLObject * and its children. * * <p> * The primary use case for this information is to support the inclusive prefixes * information that may optionally be supplied as a part of XML exclusive canonicalization. * </p> * * @return the set of non-visibly used namespace prefixes */ public Set<String> getNonVisibleNamespacePrefixes() { LazySet<String> prefixes = new LazySet<String>(); addPrefixes(prefixes, getNonVisibleNamespaces()); return prefixes; }
/** * Obtain the set of namespace prefixes used in a non-visible manner on owning XMLObject * and its children. * * <p> * The primary use case for this information is to support the inclusive prefixes * information that may optionally be supplied as a part of XML exclusive canonicalization. * </p> * * @return the set of non-visibly used namespace prefixes */ public Set<String> getNonVisibleNamespacePrefixes() { LazySet<String> prefixes = new LazySet<String>(); addPrefixes(prefixes, getNonVisibleNamespaces()); return prefixes; }