src/java.base/share/classes/java/security/PKCS12Attribute.java
changeset 58242 94bb65cb37d3
parent 49547 2f3c0bd6b987
equal deleted inserted replaced
58241:33de7752835c 58242:94bb65cb37d3
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    62      * binary value will be DER-encoded as an ASN.1 Octet String.
    62      * binary value will be DER-encoded as an ASN.1 Octet String.
    63      *
    63      *
    64      * @param name the attribute's identifier
    64      * @param name the attribute's identifier
    65      * @param value the attribute's value
    65      * @param value the attribute's value
    66      *
    66      *
    67      * @exception NullPointerException if {@code name} or {@code value}
    67      * @throws    NullPointerException if {@code name} or {@code value}
    68      *     is {@code null}
    68      *     is {@code null}
    69      * @exception IllegalArgumentException if {@code name} or
    69      * @throws    IllegalArgumentException if {@code name} or
    70      *     {@code value} is incorrectly formatted
    70      *     {@code value} is incorrectly formatted
    71      */
    71      */
    72     public PKCS12Attribute(String name, String value) {
    72     public PKCS12Attribute(String name, String value) {
    73         if (name == null || value == null) {
    73         if (name == null || value == null) {
    74             throw new NullPointerException();
    74             throw new NullPointerException();
   115      * </pre>
   115      * </pre>
   116      *
   116      *
   117      * @param encoded the attribute's ASN.1 DER encoding. It is cloned
   117      * @param encoded the attribute's ASN.1 DER encoding. It is cloned
   118      *     to prevent subsequent modificaion.
   118      *     to prevent subsequent modificaion.
   119      *
   119      *
   120      * @exception NullPointerException if {@code encoded} is
   120      * @throws    NullPointerException if {@code encoded} is
   121      *     {@code null}
   121      *     {@code null}
   122      * @exception IllegalArgumentException if {@code encoded} is
   122      * @throws    IllegalArgumentException if {@code encoded} is
   123      *     incorrectly formatted
   123      *     incorrectly formatted
   124      */
   124      */
   125     public PKCS12Attribute(byte[] encoded) {
   125     public PKCS12Attribute(byte[] encoded) {
   126         if (encoded == null) {
   126         if (encoded == null) {
   127             throw new NullPointerException();
   127             throw new NullPointerException();