javax.xml.crypto.dsig.spec.ExcC14NParameterSpec Maven / Gradle / Ivy
The newest version!
/* */ package javax.xml.crypto.dsig.spec;
/* */
/* */ import java.util.ArrayList;
/* */ import java.util.Collections;
/* */ import java.util.List;
/* */
/* */ public final class ExcC14NParameterSpec
/* */ implements C14NMethodParameterSpec
/* */ {
/* */ private List preList;
/* */ public static final String DEFAULT = "#default";
/* */
/* */ public ExcC14NParameterSpec()
/* */ {
/* 52 */ this.preList = Collections.EMPTY_LIST;
/* */ }
/* */
/* */ public ExcC14NParameterSpec(List prefixList)
/* */ {
/* 68 */ if (prefixList == null) {
/* 69 */ throw new NullPointerException("prefixList cannot be null");
/* */ }
/* 71 */ this.preList = new ArrayList(prefixList);
/* 72 */ int i = 0; for (int size = this.preList.size(); i < size; i++) {
/* 73 */ if (!(this.preList.get(i) instanceof String)) {
/* 74 */ throw new ClassCastException("not a String");
/* */ }
/* */ }
/* 77 */ this.preList = Collections.unmodifiableList(this.preList);
/* */ }
/* */
/* */ public List getPrefixList()
/* */ {
/* 91 */ return this.preList;
/* */ }
/* */ }
/* Location: E:\HYN\Java\trunk\ref\lib-dep\xmldsig\xmldsig.jar
* Qualified Name: javax.xml.crypto.dsig.spec.ExcC14NParameterSpec
* JD-Core Version: 0.6.2
*/