summaryrefslogtreecommitdiffstats
blob: cec880657aaf4c5cf96de38738af9279bd0f8289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2010, Isode Limited, London, England.
 * All rights reserved.
 */
/*
 * Copyright (c) 2010, Remko Tronçon.
 * All rights reserved.
 */

package com.isode.stroke.serializer;

import com.isode.stroke.elements.AuthFailure;
import com.isode.stroke.elements.Element;
import com.isode.stroke.serializer.xml.XMLElement;
import com.isode.stroke.base.SafeByteArray;

class AuthFailureSerializer extends GenericElementSerializer<AuthFailure>{

    public AuthFailureSerializer() {
        super(AuthFailure.class);
    }

    public SafeByteArray serialize(Element element) {
        return new SafeByteArray(new XMLElement("failure", "urn:ietf:params:xml:ns:xmpp-sasl").serialize());
    }

}